2010-02-15 15:55:39 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, dbus, libnih }:
|
2006-11-17 20:24:42 +00:00
|
|
|
|
2010-02-15 15:55:39 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "upstart-0.6.5";
|
2009-01-05 14:01:42 +00:00
|
|
|
|
2006-11-17 20:24:42 +00:00
|
|
|
src = fetchurl {
|
2010-02-15 15:55:39 +00:00
|
|
|
url = "http://upstart.ubuntu.com/download/0.6/${name}.tar.gz";
|
|
|
|
sha256 = "1kyj2xqvcn9pww3cm5i18svl7ark4a4dbqnm3hiclp4z1jwr01lw";
|
2006-11-17 20:24:42 +00:00
|
|
|
};
|
2009-04-22 07:19:22 +00:00
|
|
|
|
2010-02-15 15:55:39 +00:00
|
|
|
buildInputs = [ pkgconfig dbus libnih ];
|
2009-01-05 14:01:42 +00:00
|
|
|
|
2010-02-15 15:55:39 +00:00
|
|
|
NIX_CFLAGS_COMPILE =
|
2009-10-30 18:12:28 +00:00
|
|
|
''
|
2010-02-15 15:55:39 +00:00
|
|
|
-DSHELL="${stdenv.shell}"
|
|
|
|
-DCONFFILE="/etc/init.conf"
|
|
|
|
-DCONFDIR="/etc/init"
|
|
|
|
-DPATH="/no-path"
|
2009-10-30 18:12:28 +00:00
|
|
|
'';
|
2009-01-05 14:01:42 +00:00
|
|
|
|
2009-04-25 22:36:33 +00: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.
|
2010-02-15 15:55:39 +00:00
|
|
|
passthru.interfaceVersion = 2;
|
2009-04-25 22:36:33 +00:00
|
|
|
|
2009-10-30 18:12:28 +00:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
t=$out/etc/bash_completion.d
|
|
|
|
ensureDir $t
|
|
|
|
cp ${./upstart-bash-completion} $t/upstart
|
|
|
|
'';
|
2009-09-20 17:01:24 +00:00
|
|
|
|
2009-01-05 14:01:42 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "http://upstart.ubuntu.com/";
|
|
|
|
description = "An event-based replacement for the /sbin/init daemon";
|
|
|
|
};
|
2006-11-17 20:24:42 +00:00
|
|
|
}
|