systemd: add optional python support

This commit is contained in:
Jaka Hudoklin 2013-10-12 19:31:44 +02:00
parent cdac4b69c9
commit 09dd6a64fc

View File

@ -1,11 +1,13 @@
{ stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, dbus, kmod
, xz, pam, acl, cryptsetup, libuuid, m4, utillinux
, glib, kbd, libxslt, coreutils, libgcrypt, sysvtools, docbook_xsl
, kexectools
, kexectools, python ? null, pythonSupport ? false
}:
assert stdenv.isLinux;
assert pythonSupport -> python != null;
stdenv.mkDerivation rec {
version = "203";
name = "systemd-${version}";
@ -25,7 +27,7 @@ stdenv.mkDerivation rec {
buildInputs =
[ pkgconfig intltool gperf libcap dbus.libs kmod xz pam acl
/* cryptsetup */ libuuid m4 glib libxslt libgcrypt docbook_xsl
];
] ++ stdenv.lib.optional pythonSupport python;
configureFlags =
[ "--localstatedir=/var"