about summary refs log tree commit diff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-03-26T14·12+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-03-26T14·12+0000
commit61686926d12e55052480bd0ff2297e69cd6c364f (patch)
treec703cdac33aa859fa69fe421e1629ba99300cc63 /release.nix
parent9856efc7b0d5653aea17f1f7e58c6ff97a0b6b35 (diff)
* A job for creating a fully statically linked binary tarball.
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/release.nix b/release.nix
index 8e20fbeec67e..4b641fbc5155 100644
--- a/release.nix
+++ b/release.nix
@@ -12,7 +12,7 @@ let
 
       with import nixpkgs {};
 
-      releaseTools.makeSourceTarball {
+      releaseTools.sourceTarball {
         name = "nix-tarball";
         version = builtins.readFile ./version;
         src = nix;
@@ -76,6 +76,27 @@ let
       };
 
       
+    static =
+      { tarball ? jobs.tarball {}
+      , system ? "i686-linux"
+      }:
+
+      with import nixpkgs {inherit system;};
+
+      releaseTools.binaryTarball {
+        name = "nix-static-tarball";
+        src = tarball;
+
+        buildInputs = [curl perl bzip2];
+
+        configureFlags = ''
+          --disable-init-state
+          --disable-old-db-compat --with-aterm=${aterm242fixes} --with-bzip2=${bzip2}
+          --enable-static-nix
+        '';
+      };
+
+      
     coverage =
       { tarball ? jobs.tarball {}
       }: