From 61686926d12e55052480bd0ff2297e69cd6c364f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 26 Mar 2009 14:12:42 +0000 Subject: * A job for creating a fully statically linked binary tarball. --- release.nix | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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 {} }: -- cgit 1.4.1