2017-10-04 22:50:14 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, meson, ninja, gettext, gnome3, wrapGAppsHook, packagekit, ostree
|
|
|
|
, glib, appstream-glib, libsoup, polkit, attr, acl, libyaml, isocodes, gtkspell3, libxslt
|
|
|
|
, json_glib, libsecret, valgrind-light, docbook_xsl, docbook_xml_dtd_42, gtk_doc, desktop_file_utils }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
2017-10-07 14:06:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig meson ninja gettext wrapGAppsHook libxslt docbook_xml_dtd_42
|
2017-10-04 22:50:14 +01:00
|
|
|
valgrind-light docbook_xsl gtk_doc desktop_file_utils ];
|
|
|
|
buildInputs = [ gnome3.gtk glib packagekit appstream-glib libsoup
|
2016-09-18 20:35:23 +01:00
|
|
|
gnome3.gsettings_desktop_schemas gnome3.gnome_desktop
|
2017-10-04 22:50:14 +01:00
|
|
|
gtkspell3 json_glib libsecret ostree
|
|
|
|
polkit attr acl libyaml ];
|
2016-09-18 20:35:23 +01:00
|
|
|
propagatedBuildInputs = [ isocodes ];
|
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs meson_post_install.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Denable-flatpak=false"
|
|
|
|
"-Denable-rpm=false"
|
|
|
|
"-Denable-fwupd=false"
|
|
|
|
"-Denable-oauth=false"
|
|
|
|
"-Denable-ubuntu-reviews=false"
|
|
|
|
"-Denable-gudev=false"
|
|
|
|
];
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/xml/
|
|
|
|
ln -s ${isocodes}/share/xml/iso-codes $out/share/xml/iso-codes
|
|
|
|
'';
|
|
|
|
|
2017-11-29 00:49:09 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.freedesktop.org/software/PackageKit/;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
description = "GNOME Software lets you install and update applications and system extensions.";
|
|
|
|
};
|
|
|
|
}
|