2018-03-05 03:18:53 +01:00
|
|
|
{ stdenv, fetchurl, substituteAll, pkgconfig, meson, ninja, gettext, gnome3, wrapGAppsHook, packagekit, ostree
|
|
|
|
, glib, appstream-glib, libsoup, polkit, isocodes, gtkspell3, libxslt
|
2018-02-25 03:23:58 +01:00
|
|
|
, json-glib, libsecret, valgrind-light, docbook_xsl, docbook_xml_dtd_42, gtk-doc, desktop-file-utils }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gnome-software-${version}";
|
2018-03-13 02:03:18 +01:00
|
|
|
version = "3.28.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-software/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 02:03:18 +01:00
|
|
|
sha256 = "0zwbgxzl805c4l8kwy5bn3p91s2qxlcn4syzzg4vd4kilc6nnjwk";
|
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 = [
|
|
|
|
meson ninja pkgconfig gettext wrapGAppsHook libxslt docbook_xml_dtd_42
|
|
|
|
valgrind-light docbook_xsl gtk-doc desktop-file-utils
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-05 03:18:53 +01:00
|
|
|
buildInputs = [
|
|
|
|
gnome3.gtk glib packagekit appstream-glib libsoup
|
|
|
|
gnome3.gsettings-desktop-schemas gnome3.gnome-desktop
|
|
|
|
gtkspell3 json-glib libsecret ostree
|
|
|
|
polkit
|
|
|
|
];
|
2017-10-04 23:50:14 +02:00
|
|
|
|
2018-03-05 03:18:53 +01:00
|
|
|
# https://gitlab.gnome.org/GNOME/gnome-software/issues/320
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
2017-10-04 23:50:14 +02:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Denable-flatpak=false"
|
|
|
|
"-Denable-rpm=false"
|
|
|
|
"-Denable-fwupd=false"
|
|
|
|
"-Denable-oauth=false"
|
|
|
|
"-Denable-ubuntu-reviews=false"
|
|
|
|
"-Denable-gudev=false"
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Software;
|
2016-09-18 21:35:23 +02:00
|
|
|
license = licenses.gpl2;
|
2018-03-05 03:18:53 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
platforms = platforms.linux;
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|