3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/core/gnome-software/default.nix

120 lines
2.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, substituteAll
, pkg-config
, meson
, ninja
, gettext
, gnome3
, wrapGAppsHook
, packagekit
, ostree
, glib
, appstream-glib
, libsoup
, polkit
, isocodes
, gspell
, libxslt
, gobject-introspection
, flatpak
, fwupd
, gtk3
, gsettings-desktop-schemas
, gnome-desktop
, libxmlb
, gnome-online-accounts
, json-glib
, libsecret
, valgrind-light
, docbook-xsl-nons
, docbook_xml_dtd_42
, docbook_xml_dtd_43
, gtk-doc
, desktop-file-utils
, libsysprof-capture
}:
let
withFwupd = stdenv.isx86_64 || stdenv.isi686;
in
stdenv.mkDerivation rec {
pname = "gnome-software";
version = "3.38.0";
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "mirror://gnome/sources/gnome-software/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0rjm486vgn6gi9mv1rqdcvr9cilmw6in4r6djqkxbxqll89cp2l7";
};
2018-03-05 02:18:53 +00:00
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit isocodes;
})
];
2018-03-05 02:18:53 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
wrapGAppsHook
libxslt
docbook_xml_dtd_42
docbook_xml_dtd_43
valgrind-light
docbook-xsl-nons
gtk-doc
desktop-file-utils
gobject-introspection
2018-03-05 02:18:53 +00:00
];
2018-03-05 02:18:53 +00:00
buildInputs = [
gtk3
glib
packagekit
appstream-glib
libsoup
gsettings-desktop-schemas
gnome-desktop
gspell
json-glib
libsecret
ostree
polkit
flatpak
libxmlb
gnome-online-accounts
libsysprof-capture
2021-01-15 13:21:58 +00:00
] ++ lib.optionals withFwupd [
fwupd
2018-03-05 02:18:53 +00:00
];
2017-10-04 22:50:14 +01:00
mesonFlags = [
"-Dubuntu_reviews=false"
"-Dgudev=false"
# FIXME: package malcontent parental controls
"-Dmalcontent=false"
2021-01-15 13:21:58 +00:00
] ++ lib.optionals (!withFwupd) [
"-Dfwupd=false"
2017-10-04 22:50:14 +01:00
];
2018-03-05 02:18:53 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
2018-03-05 02:18:53 +00:00
attrPath = "gnome3.gnome-software";
};
};
meta = with lib; {
2018-03-05 02:18:53 +00:00
description = "Software store that lets you install and update applications and system extensions";
homepage = "https://wiki.gnome.org/Apps/Software";
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
2018-03-05 02:18:53 +00:00
platforms = platforms.linux;
};
}