summary refs log tree commit diff
path: root/pkgs/os-specific/linux/upstart/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/upstart/default.nix')
-rw-r--r--pkgs/os-specific/linux/upstart/default.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/os-specific/linux/upstart/default.nix b/pkgs/os-specific/linux/upstart/default.nix
index cb18679dfe5c4..466fa277ef34e 100644
--- a/pkgs/os-specific/linux/upstart/default.nix
+++ b/pkgs/os-specific/linux/upstart/default.nix
@@ -1,8 +1,5 @@
 {stdenv, fetchurl}:
 
-let bashCompletion = ./upstart-bash-completion;
-in
-
 stdenv.mkDerivation {
   name = "upstart-0.3.0";
   
@@ -17,7 +14,10 @@ stdenv.mkDerivation {
   
   patches = [./cfgdir.patch];
   
-  preBuild = "export NIX_CFLAGS_COMPILE=\"$NIX_CFLAGS_COMPILE -DSHELL=\\\"$SHELL\\\"\"";
+  preBuild =
+    ''
+      export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DSHELL=\"$SHELL\""
+    '';
 
   # The interface version prevents NixOS from switching to an
   # incompatible Upstart at runtime.  (Switching across reboots is
@@ -29,10 +29,12 @@ stdenv.mkDerivation {
     interfaceVersion = 1;
   };
 
-  postInstall = ''
-    t=$out/etc/bash_completion.d
-    ensureDir $t; cp ${bashCompletion} $t/upstart
-  '';
+  postInstall =
+    ''
+      t=$out/etc/bash_completion.d
+      ensureDir $t
+      cp ${./upstart-bash-completion} $t/upstart
+    '';
 
   meta = {
     homepage = "http://upstart.ubuntu.com/";