packagekit: supports darwin
- make systemd optional
This commit is contained in:
parent
133cf0ce1b
commit
3b995bba98
@ -1,10 +1,11 @@
|
|||||||
{ stdenv, fetchFromGitHub, lib
|
{ 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
|
, gobjectIntrospection, vala_0_38, gtk-doc, autoreconfHook, autoconf-archive
|
||||||
# TODO: set enableNixBackend to true, as soon as it builds
|
# TODO: set enableNixBackend to true, as soon as it builds
|
||||||
, nix, enableNixBackend ? false, boost
|
, nix, enableNixBackend ? false, boost
|
||||||
, enableCommandNotFound ? false
|
, enableCommandNotFound ? false
|
||||||
, enableBashCompletion ? false, bash-completion ? null }:
|
, enableBashCompletion ? false, bash-completion ? null
|
||||||
|
, enableSystemd ? stdenv.isLinux, systemd }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "packagekit-${version}";
|
name = "packagekit-${version}";
|
||||||
@ -17,7 +18,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "11drd6ixx75q3w12am3z1npwllq1kxnhbxv0npng92c69kn291zs";
|
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;
|
++ lib.optional enableBashCompletion bash-completion;
|
||||||
propagatedBuildInputs = [ sqlite nix boost ];
|
propagatedBuildInputs = [ sqlite nix boost ];
|
||||||
nativeBuildInputs = [ intltool pkgconfig autoreconfHook autoconf-archive gtk-doc ];
|
nativeBuildInputs = [ intltool pkgconfig autoreconfHook autoconf-archive gtk-doc ];
|
||||||
@ -28,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-systemd"
|
(if enableSystemd then "--enable-systemd" else "--disable-systemd")
|
||||||
"--disable-dummy"
|
"--disable-dummy"
|
||||||
"--disable-cron"
|
"--disable-cron"
|
||||||
"--disable-introspection"
|
"--disable-introspection"
|
||||||
@ -63,7 +65,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
homepage = http://www.packagekit.org/;
|
homepage = http://www.packagekit.org/;
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.darwin;
|
||||||
maintainers = with maintainers; [ matthewbauer ];
|
maintainers = with maintainers; [ matthewbauer ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user