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