Subject: [PATCH] gnu: Add gnome-software.
From: Justin Veilleux <[email-masked]>
To: [email-masked]
Date: Wed, 03 Jan 2024 01:30:38 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi. This is a patch for gnome-software.

Cheers.

From c8c61e3b4c3b30c2b28c7fed971e19d7bea4cf46 Mon Sep 17 00:00:00 2001
Message-ID: <c8c[email-masked]>
From: terramorpha <[email-masked]>
Date: Wed, 3 Jan 2024 01:23:36 -0500
Subject: [PATCH] gnu: Add gnome-software.

* gnu/packages/gnome.scm (gnome-software): New variable.

Change-Id: I5838a581d8612eed0697c801fff0e241256ce558
---
 gnu/packages/gnome.scm | 71 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index b2d4b73088..fe507d5b2d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -77,6 +77,7 @@
 ;;; Copyright © 2023 Juliana Sims <[email-masked]>
 ;;; Copyright © 2023 Dominik Delgado Steuter <[email-masked]>
 ;;; Copyright © 2023 Zhu Zihao <[email-masked]>
+;;; Copyright © 2024 Justin Veilleux <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -13459,3 +13460,73 @@ (define-public xffm+
     (home-page "http://xffm.org/")
     (license license:gpl3+)
     (properties '((upstream-name . "xffm")))))
+
+(define-public gnome-software
+  (package
+    (name "gnome-software")
+    (version "42.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append "mirror://gnome/sources/"
+                       name "/"
+                       (version-major version) "/"
+                       name "-" version ".tar.xz"))
+       (sha256 (base32 "091jc82450lsrm0l8wi2byh1317abwp5c32wrrk0hpbz59iljhz8"))))
+
+    (native-inputs
+     (list
+      pkg-config
+      (list glib "bin")
+      gnu-gettext
+      gtk-doc
+      (list gtk "bin")
+      desktop-file-utils))
+
+    (inputs
+     (list
+      appstream
+      gdk-pixbuf
+      libxmlb
+      gtk
+      json-glib
+      libsoup
+      libadwaita
+      valgrind
+      gsettings-desktop-schemas
+      polkit
+      packagekit
+      flatpak
+      libostree
+      libsoup-minimal-2
+      malcontent
+      libgudev))
+    (build-system meson-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after
+              'unpack
+              'patch-iso-codes
+            (lambda* (#:key native-inputs inputs #:allow-other-keys)
+              (with-directory-excursion
+                  "src"
+                (substitute* "./gs-language.c"
+                  (("DATADIR")
+                   (format #f "\"~a/share\"" #$iso-codes)))
+                (invoke "cat" "gs-language.c")))))
+
+      #:configure-flags
+      ''("-Dfwupd=false"
+         "-Dsoup2=true"
+         ;; tries to download something over the internet, makes the build fail
+         "-Dman=false")
+      #:tests? #f
+      #:validate-runpath? #f))
+    (synopsis "Graphical software manager for gnome")
+    (description "Software allows you to find and install new apps and system
+extensions and remove existing installed apps.")
+    (license license:gpl2)
+    (home-page "https://apps.gnome.org/en/Software/")))

base-commit: f4628000024219bf373922ff4a6fa752eb821797
-- 
2.41.0