From 7c3c635d4fa27a36fcba239b7cb980bab06ce482 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 30 May 2018 17:40:08 +0200 Subject: release.nix: Generate the installer script --- release.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'release.nix') 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 ]; }; -- cgit v1.2.3