about 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:45:32 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-04-25 22:45:32 +0000
commit5a2284ac61be1c2e838bf8263be6aa91417edff2 (patch)
tree88d1bca617789ac0ff96c0b48b2858c06d842a06 /pkgs/os-specific/linux/upstart
parentd1a57e454ead43987aefa8ff39dae5d5f5d038e8 (diff)
parentf7454eae9cc9255883dd5afb6beb945fb49737f2 (diff)
downloadnixlib-5a2284ac61be1c2e838bf8263be6aa91417edff2.tar
nixlib-5a2284ac61be1c2e838bf8263be6aa91417edff2.tar.gz
nixlib-5a2284ac61be1c2e838bf8263be6aa91417edff2.tar.bz2
nixlib-5a2284ac61be1c2e838bf8263be6aa91417edff2.tar.lz
nixlib-5a2284ac61be1c2e838bf8263be6aa91417edff2.tar.xz
nixlib-5a2284ac61be1c2e838bf8263be6aa91417edff2.tar.zst
nixlib-5a2284ac61be1c2e838bf8263be6aa91417edff2.zip
* Sync with the trunk.
svn path=/nixpkgs/branches/stdenv-updates/; revision=15313
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 ad1144dd9cff..c43662be69d1 100644
--- a/pkgs/os-specific/linux/upstart/default.nix
+++ b/pkgs/os-specific/linux/upstart/default.nix
@@ -16,6 +16,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";