2016-06-16 20:18:09 +01:00
|
|
|
{ stdenv, fetchFromGitHub, intltool, glib, pkgconfig, polkit, python, sqlite, systemd
|
|
|
|
, gobjectIntrospection, vala, gtk_doc, autoreconfHook, autoconf-archive
|
|
|
|
, nix, boost
|
|
|
|
, enableCommandNotFound ? false
|
|
|
|
, enableBashCompletion ? false, bashCompletion ? null }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2015-08-19 20:47:35 +01:00
|
|
|
|
2016-01-24 19:31:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-06-16 20:18:09 +01:00
|
|
|
name = "packagekit-2016-06-03";
|
2015-08-19 20:47:35 +01:00
|
|
|
|
2016-06-16 20:18:09 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hughsie";
|
|
|
|
repo = "PackageKit";
|
|
|
|
rev = "99fd83bbb26badf43c6a17a9f0c6dc054c7484c8";
|
|
|
|
sha256 = "0y42vl6r1wh57sbjfkn4khjs78q54wshf4p0v4nly9s7hydxpi6a";
|
2015-08-19 20:47:35 +01:00
|
|
|
};
|
|
|
|
|
2016-06-16 20:18:09 +01:00
|
|
|
buildInputs = [ glib polkit systemd python gobjectIntrospection vala ]
|
|
|
|
++ optional enableBashCompletion bashCompletion;
|
|
|
|
propagatedBuildInputs = [ sqlite nix boost ];
|
|
|
|
nativeBuildInputs = [ intltool pkgconfig autoreconfHook autoconf-archive gtk_doc ];
|
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
gtkdocize
|
|
|
|
intltoolize
|
|
|
|
'';
|
2015-08-19 20:47:35 +01:00
|
|
|
|
2015-11-23 14:25:58 +00:00
|
|
|
configureFlags = [
|
2016-06-16 20:18:09 +01:00
|
|
|
"--enable-systemd"
|
|
|
|
"--enable-nix"
|
|
|
|
"--disable-dummy"
|
2015-11-23 14:25:58 +00:00
|
|
|
"--disable-cron"
|
2016-06-16 20:18:09 +01: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/"
|
|
|
|
]
|
|
|
|
++ optional (!enableBashCompletion) "--disable-bash-completion"
|
|
|
|
++ optional (!enableCommandNotFound) "--disable-command-not-found";
|
2015-08-19 20:47:35 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-06-16 20:18:09 +01:00
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
2015-08-19 20:47:35 +01:00
|
|
|
|
2016-06-16 20:18:09 +01:00
|
|
|
meta = {
|
2015-08-19 20:47:35 +01: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;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
}
|