* Added libnih (a dependency of Upstart). * Removed the old Upstart 0.3.x. svn path=/nixpkgs/trunk/; revision=20015wip/yesman
parent
c0e9630d98
commit
e9ad76a2ff
@ -0,0 +1,20 @@ |
||||
{ stdenv, fetchurl, pkgconfig, dbus, expat }: |
||||
|
||||
let version = "1.0.1"; in |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "libnih-${version}"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://code.launchpad.net/libnih/1.0/${version}/+download/libnih-${version}.tar.gz"; |
||||
sha256 = "1sjkhpryk9vrv84bbab7b47spq60rkycm10ygnjfybjypk6hs7ds"; |
||||
}; |
||||
|
||||
buildInputs = [ pkgconfig dbus expat ]; |
||||
|
||||
meta = { |
||||
description = "A small library for C application development"; |
||||
homepage = https://launchpad.net/libnih; |
||||
license = "GPLv2"; |
||||
}; |
||||
} |
@ -1,40 +0,0 @@ |
||||
{ stdenv, fetchurl, pkgconfig, dbus, expat }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
name = "upstart-0.6.3"; |
||||
|
||||
src = fetchurl { |
||||
url = "http://upstart.ubuntu.com/download/0.6/${name}.tar.bz2"; |
||||
sha256 = "0m472fxd466ycm3l1hnkhi7dlyk1w9q42b7b1j9y1zq5nz6cnf42"; |
||||
}; |
||||
|
||||
buildInputs = [ pkgconfig dbus expat ]; |
||||
|
||||
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"; |
||||
}; |
||||
} |
Loading…
Reference in new issue