summary refs log tree commit diff
path: root/pkgs/os-specific/linux/upstart
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-04-25 22:36:33 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-04-25 22:36:33 +0000
commitf7454eae9cc9255883dd5afb6beb945fb49737f2 (patch)
treed9c9c7a611c15084aaa5dc6ae9f847f1b4ce7e27 /pkgs/os-specific/linux/upstart
parentecd43e2bfe9bf845206da01c38c580bfae4660e2 (diff)
downloadnixlib-f7454eae9cc9255883dd5afb6beb945fb49737f2.tar
nixlib-f7454eae9cc9255883dd5afb6beb945fb49737f2.tar.gz
nixlib-f7454eae9cc9255883dd5afb6beb945fb49737f2.tar.bz2
nixlib-f7454eae9cc9255883dd5afb6beb945fb49737f2.tar.lz
nixlib-f7454eae9cc9255883dd5afb6beb945fb49737f2.tar.xz
nixlib-f7454eae9cc9255883dd5afb6beb945fb49737f2.tar.zst
nixlib-f7454eae9cc9255883dd5afb6beb945fb49737f2.zip
* Be able to cope with future changes to Upstart.
svn path=/nixpkgs/trunk/; revision=15311
Diffstat (limited to 'pkgs/os-specific/linux/upstart')
-rw-r--r--pkgs/os-specific/linux/upstart/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/upstart/default.nix b/pkgs/os-specific/linux/upstart/default.nix
index b35f9c036421..9f3a631bab34 100644
--- a/pkgs/os-specific/linux/upstart/default.nix
+++ b/pkgs/os-specific/linux/upstart/default.nix
@@ -14,6 +14,16 @@ stdenv.mkDerivation {
   
   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
+  # 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 = 0;
+  };
+
   meta = {
     homepage = "http://upstart.ubuntu.com/";
     description = "An event-based replacement for the /sbin/init daemon";