2016-08-04 18:49:58 +01:00
|
|
|
{ stdenv, fetchFromGitHub, lib
|
2021-01-17 09:17:16 +00:00
|
|
|
, intltool, glib, pkg-config, polkit, python3, sqlite
|
2019-03-14 04:18:41 +00:00
|
|
|
, gobject-introspection, vala, gtk-doc, autoreconfHook, autoconf-archive
|
2016-12-17 15:53:27 +00:00
|
|
|
, nix, enableNixBackend ? false, boost
|
2016-06-16 20:18:09 +01:00
|
|
|
, enableCommandNotFound ? false
|
2018-06-16 04:07:45 +01:00
|
|
|
, enableBashCompletion ? false, bash-completion ? null
|
|
|
|
, enableSystemd ? stdenv.isLinux, systemd }:
|
2016-06-16 20:18:09 +01:00
|
|
|
|
2016-01-24 19:31:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "packagekit";
|
2020-01-18 13:34:18 +00:00
|
|
|
version = "1.1.13";
|
2015-08-19 20:47:35 +01:00
|
|
|
|
2018-09-23 13:25:43 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2016-06-16 20:18:09 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hughsie";
|
|
|
|
repo = "PackageKit";
|
2016-08-04 18:49:58 +01:00
|
|
|
rev = "PACKAGEKIT_${lib.replaceStrings ["."] ["_"] version}";
|
2020-01-18 13:34:18 +00:00
|
|
|
sha256 = "0xmgac27p5z8wr56yw3cqhywnlvaf8kvyv1g0nzxnq167xj5vxam";
|
2015-08-19 20:47:35 +01:00
|
|
|
};
|
|
|
|
|
2019-12-25 08:29:57 +00:00
|
|
|
buildInputs = [ glib polkit python3 gobject-introspection ]
|
2018-06-16 04:07:45 +01:00
|
|
|
++ lib.optional enableSystemd systemd
|
2016-09-28 16:46:29 +01:00
|
|
|
++ lib.optional enableBashCompletion bash-completion;
|
2020-04-02 18:31:33 +01:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[ sqlite boost ]
|
|
|
|
++ lib.optional enableNixBackend nix;
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ vala intltool pkg-config autoreconfHook autoconf-archive gtk-doc ];
|
2016-06-16 20:18:09 +01:00
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
gtkdocize
|
|
|
|
intltoolize
|
|
|
|
'';
|
2015-08-19 20:47:35 +01:00
|
|
|
|
2015-11-23 14:25:58 +00:00
|
|
|
configureFlags = [
|
2018-06-16 04:07:45 +01:00
|
|
|
(if enableSystemd then "--enable-systemd" else "--disable-systemd")
|
2016-06-16 20:18:09 +01:00
|
|
|
"--disable-dummy"
|
2015-11-23 14:25:58 +00:00
|
|
|
"--disable-cron"
|
2018-09-23 13:25:43 +01:00
|
|
|
"--enable-introspection"
|
2016-06-16 20:18:09 +01:00
|
|
|
"--disable-offline-update"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
"--sysconfdir=/etc"
|
2019-09-16 03:54:03 +01:00
|
|
|
"--with-dbus-sys=${placeholder "out"}/share/dbus-1/system.d"
|
2020-01-18 13:34:18 +00:00
|
|
|
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
|
|
|
"--with-systemduserunitdir=${placeholder "out"}/lib/systemd/user"
|
2016-06-16 20:18:09 +01:00
|
|
|
]
|
2016-12-17 15:53:27 +00:00
|
|
|
++ lib.optional enableNixBackend "--enable-nix"
|
2016-08-04 18:49:58 +01:00
|
|
|
++ lib.optional (!enableBashCompletion) "--disable-bash-completion"
|
|
|
|
++ lib.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 = [
|
2020-01-18 13:34:18 +00:00
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
2016-06-16 20:18:09 +01:00
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
2015-08-19 20:47:35 +01:00
|
|
|
|
2016-08-04 18:49:58 +01:00
|
|
|
meta = with lib; {
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.packagekit.org/";
|
2015-08-19 20:47:35 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2018-06-16 21:51:44 +01:00
|
|
|
platforms = platforms.unix;
|
2018-01-16 21:59:13 +00:00
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
2015-08-19 20:47:35 +01:00
|
|
|
};
|
|
|
|
}
|