2016-08-04 19:49:58 +02:00
|
|
|
{ stdenv, fetchFromGitHub, lib
|
|
|
|
, intltool, glib, pkgconfig, polkit, python, sqlite, systemd
|
2017-10-12 23:38:57 +02:00
|
|
|
, gobjectIntrospection, vala_0_38, gtk_doc, autoreconfHook, autoconf-archive
|
2016-12-17 16:53:27 +01:00
|
|
|
# TODO: set enableNixBackend to true, as soon as it builds
|
|
|
|
, nix, enableNixBackend ? false, boost
|
2016-06-16 21:18:09 +02:00
|
|
|
, enableCommandNotFound ? false
|
2016-09-28 17:46:29 +02:00
|
|
|
, enableBashCompletion ? false, bash-completion ? null }:
|
2016-06-16 21:18:09 +02:00
|
|
|
|
2016-01-24 20:31:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-08-04 19:49:58 +02:00
|
|
|
name = "packagekit-${version}";
|
2017-10-12 23:38:57 +02:00
|
|
|
version = "1.1.7";
|
2015-08-19 21:47:35 +02:00
|
|
|
|
2016-06-16 21:18:09 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hughsie";
|
|
|
|
repo = "PackageKit";
|
2016-08-04 19:49:58 +02:00
|
|
|
rev = "PACKAGEKIT_${lib.replaceStrings ["."] ["_"] version}";
|
2017-10-12 23:38:57 +02:00
|
|
|
sha256 = "076rrczmyhapj87pxqldsar5pbz4mid6cm9l1n91zh2q403chdkb";
|
2015-08-19 21:47:35 +02:00
|
|
|
};
|
|
|
|
|
2017-10-12 23:38:57 +02:00
|
|
|
buildInputs = [ glib polkit systemd python gobjectIntrospection vala_0_38 ]
|
2016-09-28 17:46:29 +02:00
|
|
|
++ lib.optional enableBashCompletion bash-completion;
|
2016-06-16 21:18:09 +02:00
|
|
|
propagatedBuildInputs = [ sqlite nix boost ];
|
|
|
|
nativeBuildInputs = [ intltool pkgconfig autoreconfHook autoconf-archive gtk_doc ];
|
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
gtkdocize
|
|
|
|
intltoolize
|
|
|
|
'';
|
2015-08-19 21:47:35 +02:00
|
|
|
|
2015-11-23 15:25:58 +01:00
|
|
|
configureFlags = [
|
2016-06-16 21:18:09 +02:00
|
|
|
"--enable-systemd"
|
|
|
|
"--disable-dummy"
|
2015-11-23 15:25:58 +01:00
|
|
|
"--disable-cron"
|
2016-06-16 21:18:09 +02:00
|
|
|
"--disable-introspection"
|
|
|
|
"--disable-offline-update"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--with-dbus-sys=$(out)/etc/dbus-1/system.d"
|
|
|
|
"--with-systemdsystemunitdir=$(out)/lib/systemd/system/"
|
|
|
|
]
|
2016-12-17 16:53:27 +01:00
|
|
|
++ lib.optional enableNixBackend "--enable-nix"
|
2016-08-04 19:49:58 +02:00
|
|
|
++ lib.optional (!enableBashCompletion) "--disable-bash-completion"
|
|
|
|
++ lib.optional (!enableCommandNotFound) "--disable-command-not-found";
|
2015-08-19 21:47:35 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-06-16 21:18:09 +02:00
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
2015-08-19 21:47:35 +02:00
|
|
|
|
2016-08-04 19:49:58 +02:00
|
|
|
meta = with lib; {
|
2015-08-19 21:47:35 +02:00
|
|
|
description = "System to facilitate installing and updating packages";
|
|
|
|
longDescription = ''
|
|
|
|
PackageKit is a system designed to make installing and updating software
|
|
|
|
on your computer easier. The primary design goal is to unify all the
|
|
|
|
software graphical tools used in different distributions, and use some of
|
|
|
|
the latest technology like PolicyKit. The actual nuts-and-bolts distro
|
|
|
|
tool (dnf, apt, etc) is used by PackageKit using compiled and scripted
|
|
|
|
helpers. PackageKit isn't meant to replace these tools, instead providing
|
|
|
|
a common set of abstractions that can be used by standard GUI and text
|
|
|
|
mode package managers.
|
|
|
|
'';
|
|
|
|
homepage = http://www.packagekit.org/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2016-06-16 21:19:40 +02:00
|
|
|
maintainers = with maintainers; [ nckx matthewbauer ];
|
2015-08-19 21:47:35 +02:00
|
|
|
};
|
|
|
|
}
|