nixpkgs/pkgs/os-specific/linux/upstart/default.nix
Eelco Dolstra 69f3a67710 * Upstart updated to 1.3.
svn path=/nixpkgs/trunk/; revision=29828
2011-10-13 15:01:44 +00:00

41 lines
1.1 KiB
Nix

{ stdenv, fetchurl, pkgconfig, dbus, libnih }:
stdenv.mkDerivation rec {
name = "upstart-1.3";
src = fetchurl {
url = "http://upstart.ubuntu.com/download/1.3/${name}.tar.gz";
md5 = "7820797b64878c27115fff6a7398a6a9";
};
buildInputs = [ pkgconfig dbus libnih ];
NIX_CFLAGS_COMPILE =
''
-DSHELL="${stdenv.shell}"
-DCONFFILE="/etc/init.conf"
-DCONFDIR="/etc/init"
-DPATH="/no-path"
'';
# The interface version prevents NixOS from switching to an
# incompatible Upstart at runtime. (Switching across reboots is
# fine, of course.) It should be increased whenever Upstart changes
# in a backwards-incompatible way. If the interface version of two
# Upstart builds is the same, then we can switch between them at
# runtime; otherwise we can't and we need to reboot.
passthru.interfaceVersion = 2;
postInstall =
''
t=$out/etc/bash_completion.d
ensureDir $t
cp ${./upstart-bash-completion} $t/upstart
'';
meta = {
homepage = "http://upstart.ubuntu.com/";
description = "An event-based replacement for the /sbin/init daemon";
};
}