packagekit: supports darwin

- make systemd optional
This commit is contained in:
Matthew Bauer 2018-06-15 23:07:45 -04:00
parent 133cf0ce1b
commit 3b995bba98

View File

@ -1,10 +1,11 @@
{ stdenv, fetchFromGitHub, lib
, intltool, glib, pkgconfig, polkit, python, sqlite, systemd
, intltool, glib, pkgconfig, polkit, python, sqlite
, gobjectIntrospection, vala_0_38, gtk-doc, autoreconfHook, autoconf-archive
# TODO: set enableNixBackend to true, as soon as it builds
, nix, enableNixBackend ? false, boost
, enableCommandNotFound ? false
, enableBashCompletion ? false, bash-completion ? null }:
, enableBashCompletion ? false, bash-completion ? null
, enableSystemd ? stdenv.isLinux, systemd }:
stdenv.mkDerivation rec {
name = "packagekit-${version}";
@ -17,7 +18,8 @@ stdenv.mkDerivation rec {
sha256 = "11drd6ixx75q3w12am3z1npwllq1kxnhbxv0npng92c69kn291zs";
};
buildInputs = [ glib polkit systemd python gobjectIntrospection vala_0_38 ]
buildInputs = [ glib polkit python gobjectIntrospection vala_0_38 ]
++ lib.optional enableSystemd systemd
++ lib.optional enableBashCompletion bash-completion;
propagatedBuildInputs = [ sqlite nix boost ];
nativeBuildInputs = [ intltool pkgconfig autoreconfHook autoconf-archive gtk-doc ];
@ -28,7 +30,7 @@ stdenv.mkDerivation rec {
'';
configureFlags = [
"--enable-systemd"
(if enableSystemd then "--enable-systemd" else "--disable-systemd")
"--disable-dummy"
"--disable-cron"
"--disable-introspection"
@ -63,7 +65,7 @@ stdenv.mkDerivation rec {
'';
homepage = http://www.packagekit.org/;
license = licenses.gpl2Plus;
platforms = platforms.linux;
platforms = platforms.darwin;
maintainers = with maintainers; [ matthewbauer ];
};
}