evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / gn / gnome-software / package.nix
blob0d0569ed6b382146f85f3be4cf2a66c77fc0b852
2   lib,
3   stdenv,
4   fetchurl,
5   substituteAll,
6   pkg-config,
7   meson,
8   ninja,
9   gettext,
10   gnome,
11   wrapGAppsHook4,
12   packagekit,
13   ostree,
14   glib,
15   appstream,
16   libsoup_3,
17   libadwaita,
18   polkit,
19   isocodes,
20   gspell,
21   libxslt,
22   gobject-introspection,
23   itstool,
24   flatpak,
25   fwupd,
26   gtk4,
27   gsettings-desktop-schemas,
28   gnome-desktop,
29   libgudev,
30   libxmlb,
31   malcontent,
32   json-glib,
33   glib-networking,
34   libsecret,
35   valgrind-light,
36   docbook-xsl-nons,
37   docbook_xml_dtd_42,
38   docbook_xml_dtd_43,
39   gtk-doc,
40   desktop-file-utils,
41   libsysprof-capture,
42   gst_all_1,
45 let
46   withFwupd = stdenv.hostPlatform.isx86;
49 stdenv.mkDerivation (finalAttrs: {
50   pname = "gnome-software";
51   version = "47.1";
53   src = fetchurl {
54     url = "mirror://gnome/sources/gnome-software/${lib.versions.major finalAttrs.version}/gnome-software-${finalAttrs.version}.tar.xz";
55     hash = "sha256-k8pQA2YxZ0VZTvBfytHAXPQ/Au+PZggMF/fruMo/NL8=";
56   };
58   patches = [
59     (substituteAll {
60       src = ./fix-paths.patch;
61       inherit isocodes;
62     })
63   ];
65   nativeBuildInputs = [
66     meson
67     ninja
68     pkg-config
69     gettext
70     wrapGAppsHook4
71     libxslt
72     docbook_xml_dtd_42
73     docbook_xml_dtd_43
74     valgrind-light
75     docbook-xsl-nons
76     gtk-doc
77     desktop-file-utils
78     gobject-introspection
79     itstool
80   ];
82   buildInputs = [
83     gtk4
84     glib
85     glib-networking
86     packagekit
87     appstream
88     libsoup_3
89     libadwaita
90     gsettings-desktop-schemas
91     gnome-desktop
92     gspell
93     json-glib
94     libsecret
95     ostree
96     polkit
97     flatpak
98     libgudev
99     libxmlb
100     malcontent
101     libsysprof-capture
102     # For video screenshots
103     gst_all_1.gst-plugins-base
104     gst_all_1.gst-plugins-good
105   ] ++ lib.optionals withFwupd [ fwupd ];
107   mesonFlags = [
108     # Requires /etc/machine-id, D-Bus system bus, etc.
109     "-Dtests=false"
110   ] ++ lib.optionals (!withFwupd) [ "-Dfwupd=false" ];
112   passthru = {
113     updateScript = gnome.updateScript { packageName = "gnome-software"; };
114   };
116   meta = with lib; {
117     description = "Software store that lets you install and update applications and system extensions";
118     mainProgram = "gnome-software";
119     homepage = "https://apps.gnome.org/Software/";
120     license = licenses.gpl2Plus;
121     maintainers = teams.gnome.members;
122     platforms = platforms.linux;
123   };