From 15e5aead3d3853d2ee14240e50b2f1c49145e016 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 2 Mar 2012 14:46:58 +0000 Subject: [PATCH] * Upstart 1.4. Of particular interest is the "log" stanza to redirect a job's stdout/stderr to a file, and "setuid" / "setgid" to execute a job as a different user/group. svn path=/nixpkgs/trunk/; revision=32744 --- pkgs/os-specific/linux/upstart/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/upstart/default.nix b/pkgs/os-specific/linux/upstart/default.nix index 4e440770ef98..d8a6d7335ab2 100644 --- a/pkgs/os-specific/linux/upstart/default.nix +++ b/pkgs/os-specific/linux/upstart/default.nix @@ -1,11 +1,13 @@ { stdenv, fetchurl, pkgconfig, dbus, libnih }: +let version = "1.4"; in + stdenv.mkDerivation rec { - name = "upstart-1.3"; + name = "upstart-${version}"; src = fetchurl { - url = "http://upstart.ubuntu.com/download/1.3/${name}.tar.gz"; - md5 = "7820797b64878c27115fff6a7398a6a9"; + url = "http://upstart.ubuntu.com/download/${version}/${name}.tar.gz"; + md5 = "3aa9ddf8459b56547a6238aa77c61815"; }; buildInputs = [ pkgconfig dbus libnih ]; @@ -29,7 +31,7 @@ stdenv.mkDerivation rec { postInstall = '' t=$out/etc/bash_completion.d - ensureDir $t + mkdir -p $t cp ${./upstart-bash-completion} $t/upstart '';