diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-05-30 17:40:08 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-05-30 17:40:08 +0200 |
commit | 7c3c635d4fa27a36fcba239b7cb980bab06ce482 (patch) | |
tree | 93834e2f72b244164cb474feb30fa5edb8970900 /release.nix | |
parent | 4caaa4c5fe889be65932183e11556ee4d1fcfcac (diff) |
release.nix: Generate the installer script
Diffstat (limited to 'release.nix')
-rw-r--r-- | release.nix | 21 |
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 ]; }; |