summaryrefslogtreecommitdiffstats
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-21 20:48:19 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-05-21 20:48:19 +0000
commit4ac1552b1597c4f1c6894efd55d51bd64ce210b1 (patch)
treed69b312e2e97b52446571c92c7e4b6afe237d67c /pkgs/os-specific
parent8336d5599396eef35236b26ebc0a651117f5680d (diff)
* Added systemd.
svn path=/nixpkgs/trunk/; revision=34200
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/systemd/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
new file mode 100644
index 000000000000..27612ec50a46
--- /dev/null
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, udev, dbus, kmod
+, xz, pam, acl, cryptsetup, libuuid, m4 }:
+
+stdenv.mkDerivation rec {
+ name = "systemd-44";
+
+ src = fetchurl {
+ url = "http://www.freedesktop.org/software/systemd/${name}.tar.xz";
+ sha256 = "0g138b5yvn419xqrakpk75q2sb4g7pj10br9b6zq4flb9d5sqnks";
+ };
+
+ buildInputs =
+ [ pkgconfig intltool gperf libcap udev dbus kmod xz pam acl
+ cryptsetup libuuid m4
+ ];
+
+ configureFlags =
+ [ "--localstatedir=/var"
+ "--with-distro=other"
+ "--with-rootprefix=$(out)"
+ "--with-rootprefix=$(out)"
+ "--with-dbusinterfacedir=$(out)/share/dbus-1/interfaces"
+ "--with-dbuspolicydir=$(out)/etc/dbus-1/system.d"
+ "--with-dbussystemservicedir=$(out)/share/dbus-1/system-services"
+ "--with-dbussessionservicedir=$(out)/share/dbus-1/services"
+ ];
+
+ installFlags = "localstatedir=$(TMPDIR)/var";
+
+ enableParallelBuilding = true;
+
+ meta = {
+ homepage = http://www.freedesktop.org/wiki/Software/systemd;
+ description = "A system and service manager for Linux";
+ };
+}