aboutsummaryrefslogtreecommitdiff
path: root/release.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-05-30 17:40:08 +0200
committerEelco Dolstra <edolstra@gmail.com>2018-05-30 17:40:08 +0200
commit7c3c635d4fa27a36fcba239b7cb980bab06ce482 (patch)
tree93834e2f72b244164cb474feb30fa5edb8970900 /release.nix
parent4caaa4c5fe889be65932183e11556ee4d1fcfcac (diff)
release.nix: Generate the installer script
Diffstat (limited to 'release.nix')
-rw-r--r--release.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/release.nix b/release.nix
index 37deb8e7e..321f16883 100644
--- a/release.nix
+++ b/release.nix
@@ -275,6 +275,24 @@ let
'';
+ installerScript =
+ pkgs.runCommand "installer-script"
+ { buildInputs = [ build.x86_64-linux ];
+ }
+ ''
+ mkdir -p $out/nix-support
+
+ substitute ${./scripts/install.in} $out/install \
+ ${pkgs.lib.concatMapStrings
+ (system: "--replace '@binaryTarball_${system}@' $(nix hash-file --type sha256 ${binaryTarball.${system}}/*.tar.bz2) ")
+ [ "x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" ]
+ } \
+ --replace '@nixVersion@' ${build.x86_64-linux.src.version}
+
+ echo "file installer $out/install" >> $out/nix-support/hydra-build-products
+ '';
+
+
# Aggregate job containing the release-critical jobs.
release = pkgs.releaseTools.aggregate {
name = "nix-${tarball.version}";
@@ -284,14 +302,17 @@ let
build.i686-linux
build.x86_64-darwin
build.x86_64-linux
+ build.aarch64-linux
binaryTarball.i686-linux
binaryTarball.x86_64-darwin
binaryTarball.x86_64-linux
+ binaryTarball.aarch64-linux
tests.remoteBuilds
tests.nix-copy-closure
tests.binaryTarball
tests.evalNixpkgs
tests.evalNixOS
+ installerScript
];
};