2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
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,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2021-12-06 16:07:01 +00:00
|
|
|
withFwupd = stdenv.hostPlatform.isx86;
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gnome-software";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "46.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-05 15:53:02 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-software/${lib.versions.major finalAttrs.version}/gnome-software-${finalAttrs.version}.tar.xz";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-ZVTR3gfnxjUtqLBjhP6hPaZJnXHAW1rQANjiHLFT9a8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit isocodes;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gettext
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapGAppsHook4
|
2021-02-05 17:12:51 +00:00
|
|
|
libxslt
|
|
|
|
docbook_xml_dtd_42
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
valgrind-light
|
|
|
|
docbook-xsl-nons
|
|
|
|
gtk-doc
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
gtk4
|
2021-02-05 17:12:51 +00:00
|
|
|
glib
|
2024-07-27 06:49:29 +00:00
|
|
|
glib-networking
|
2021-02-05 17:12:51 +00:00
|
|
|
packagekit
|
2021-05-20 23:08:51 +00:00
|
|
|
appstream
|
2022-10-21 18:38:19 +00:00
|
|
|
libsoup_3
|
2022-03-30 09:31:56 +00:00
|
|
|
libadwaita
|
2021-02-05 17:12:51 +00:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gnome-desktop
|
|
|
|
gspell
|
|
|
|
json-glib
|
|
|
|
libsecret
|
|
|
|
ostree
|
|
|
|
polkit
|
|
|
|
flatpak
|
2022-10-21 18:38:19 +00:00
|
|
|
libgudev
|
2021-02-05 17:12:51 +00:00
|
|
|
libxmlb
|
2022-10-21 18:38:19 +00:00
|
|
|
malcontent
|
2021-02-05 17:12:51 +00:00
|
|
|
libsysprof-capture
|
2022-10-21 18:38:19 +00:00
|
|
|
# For video screenshots
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
2024-09-19 14:19:46 +00:00
|
|
|
] ++ lib.optionals withFwupd [ fwupd ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mesonFlags = [
|
2022-10-21 18:38:19 +00:00
|
|
|
# Requires /etc/machine-id, D-Bus system bus, etc.
|
|
|
|
"-Dtests=false"
|
2024-09-19 14:19:46 +00:00
|
|
|
] ++ lib.optionals (!withFwupd) [ "-Dfwupd=false" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
passthru = {
|
2024-09-19 14:19:46 +00:00
|
|
|
updateScript = gnome.updateScript { packageName = "gnome-software"; };
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Software store that lets you install and update applications and system extensions";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gnome-software";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://apps.gnome.org/Software/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
})
|