systemd: add optional python support
This commit is contained in:
parent
cdac4b69c9
commit
09dd6a64fc
|
@ -1,11 +1,13 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, dbus, kmod
|
{ stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, dbus, kmod
|
||||||
, xz, pam, acl, cryptsetup, libuuid, m4, utillinux
|
, xz, pam, acl, cryptsetup, libuuid, m4, utillinux
|
||||||
, glib, kbd, libxslt, coreutils, libgcrypt, sysvtools, docbook_xsl
|
, glib, kbd, libxslt, coreutils, libgcrypt, sysvtools, docbook_xsl
|
||||||
, kexectools
|
, kexectools, python ? null, pythonSupport ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
|
assert pythonSupport -> python != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "203";
|
version = "203";
|
||||||
name = "systemd-${version}";
|
name = "systemd-${version}";
|
||||||
|
@ -25,7 +27,7 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig intltool gperf libcap dbus.libs kmod xz pam acl
|
[ pkgconfig intltool gperf libcap dbus.libs kmod xz pam acl
|
||||||
/* cryptsetup */ libuuid m4 glib libxslt libgcrypt docbook_xsl
|
/* cryptsetup */ libuuid m4 glib libxslt libgcrypt docbook_xsl
|
||||||
];
|
] ++ stdenv.lib.optional pythonSupport python;
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--localstatedir=/var"
|
[ "--localstatedir=/var"
|
||||||
|
|
Loading…
Reference in New Issue