2006-11-17 23:24:42 +03:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "upstart-0.3.0";
|
2009-01-05 17:01:42 +03:00
|
|
|
|
2006-11-17 23:24:42 +03:00
|
|
|
src = fetchurl {
|
2009-01-05 17:01:42 +03:00
|
|
|
url = http://nixos.org/tarballs/upstart-0.3.0.tar.bz2;
|
2006-11-17 23:24:42 +03:00
|
|
|
md5 = "269046f41c6418225306280044a799eb";
|
|
|
|
};
|
2009-04-22 11:19:22 +04:00
|
|
|
|
|
|
|
dontDisableStatic = true;
|
2009-01-05 17:01:42 +03:00
|
|
|
|
2006-11-19 18:58:58 +03:00
|
|
|
configureFlags = "--enable-compat";
|
2009-01-05 17:01:42 +03:00
|
|
|
|
2006-11-19 21:16:13 +03:00
|
|
|
patches = [./cfgdir.patch];
|
2009-01-05 17:01:42 +03:00
|
|
|
|
2009-10-30 21:12:28 +03:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DSHELL=\"$SHELL\""
|
|
|
|
'';
|
2009-01-05 17:01:42 +03:00
|
|
|
|
2009-04-26 02:36:33 +04:00
|
|
|
# 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 = {
|
2009-04-26 02:48:48 +04:00
|
|
|
interfaceVersion = 1;
|
2009-04-26 02:36:33 +04:00
|
|
|
};
|
|
|
|
|
2009-10-30 21:12:28 +03:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
t=$out/etc/bash_completion.d
|
|
|
|
ensureDir $t
|
|
|
|
cp ${./upstart-bash-completion} $t/upstart
|
|
|
|
'';
|
2009-09-20 21:01:24 +04:00
|
|
|
|
2009-01-05 17:01:42 +03:00
|
|
|
meta = {
|
|
|
|
homepage = "http://upstart.ubuntu.com/";
|
|
|
|
description = "An event-based replacement for the /sbin/init daemon";
|
|
|
|
};
|
2006-11-17 23:24:42 +03:00
|
|
|
}
|