2018-03-05 03:18:53 +01:00
|
|
|
{ stdenv, fetchurl, substituteAll, pkgconfig, meson, ninja, gettext, gnome3, wrapGAppsHook, packagekit, ostree
|
2018-12-02 12:41:15 +01:00
|
|
|
, glib, appstream-glib, libsoup, polkit, isocodes, gspell, libxslt, gobject-introspection, flatpak, fwupd
|
2019-09-12 16:25:05 +02:00
|
|
|
, gtk3, gsettings-desktop-schemas, gnome-desktop, libxmlb, gnome-online-accounts
|
2018-09-05 02:48:19 +02:00
|
|
|
, json-glib, libsecret, valgrind-light, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_43, gtk-doc, desktop-file-utils }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-08-07 20:19:05 +02:00
|
|
|
let
|
|
|
|
|
|
|
|
withFwupd = stdenv.isx86_64 || stdenv.isi686;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gnome-software";
|
2020-05-25 21:27:16 +02:00
|
|
|
version = "3.36.1";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://gnome/sources/gnome-software/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-05-25 21:27:16 +02:00
|
|
|
sha256 = "0vkgpy2afb33rrk94zqlm2q728xhzjj8s24n9wh9ylw00z3nckad";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2018-03-05 03:18:53 +01:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit isocodes;
|
|
|
|
})
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-05 03:18:53 +01:00
|
|
|
nativeBuildInputs = [
|
2018-09-05 02:48:19 +02:00
|
|
|
meson ninja pkgconfig gettext wrapGAppsHook libxslt docbook_xml_dtd_42 docbook_xml_dtd_43
|
2018-12-02 12:41:15 +01:00
|
|
|
valgrind-light docbook_xsl gtk-doc desktop-file-utils gobject-introspection
|
2018-03-05 03:18:53 +01:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-05 03:18:53 +01:00
|
|
|
buildInputs = [
|
2019-02-13 22:47:50 +01:00
|
|
|
gtk3 glib packagekit appstream-glib libsoup
|
|
|
|
gsettings-desktop-schemas gnome-desktop
|
2018-03-15 05:27:44 +01:00
|
|
|
gspell json-glib libsecret ostree
|
2019-08-07 20:19:05 +02:00
|
|
|
polkit flatpak libxmlb gnome-online-accounts
|
|
|
|
] ++ stdenv.lib.optionals withFwupd [
|
|
|
|
fwupd
|
2018-03-05 03:18:53 +01:00
|
|
|
];
|
2017-10-04 23:50:14 +02:00
|
|
|
|
|
|
|
mesonFlags = [
|
2018-09-05 02:48:19 +02:00
|
|
|
"-Dubuntu_reviews=false"
|
|
|
|
"-Dgudev=false"
|
2020-02-09 01:37:19 +01:00
|
|
|
# FIXME: package malcontent parental controls
|
|
|
|
"-Dmalcontent=false"
|
2019-08-07 20:19:05 +02:00
|
|
|
] ++ stdenv.lib.optionals (!withFwupd) [
|
|
|
|
"-Dfwupd=false"
|
2017-10-04 23:50:14 +02:00
|
|
|
];
|
|
|
|
|
2018-03-05 03:18:53 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-software";
|
|
|
|
attrPath = "gnome3.gnome-software";
|
|
|
|
};
|
|
|
|
};
|
2017-11-29 01:49:09 +01:00
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-05 03:18:53 +01:00
|
|
|
description = "Software store that lets you install and update applications and system extensions";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Software";
|
2016-09-18 21:35:23 +02:00
|
|
|
license = licenses.gpl2;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2018-03-05 03:18:53 +01:00
|
|
|
platforms = platforms.linux;
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|