Add stdenv bootstrap tools generation to release.nix

This commit is contained in:
Eelco Dolstra
2015-10-23 13:05:36 +02:00
parent e48ad583b0
commit 45c7dd7d98
5 changed files with 53 additions and 37 deletions
+12 -2
View File
@@ -34,7 +34,7 @@ rec {
build =
stdenv.mkDerivation {
name = "build";
name = "stdenv-bootstrap-tools";
buildInputs = [nukeReferences cpio];
@@ -154,9 +154,19 @@ rec {
allowedReferences = [];
};
dist = stdenv.mkDerivation {
name = "stdenv-bootstrap-tools";
buildCommand = ''
mkdir -p $out/nix-support
echo "file tarball ${build}/on-server/bootstrap-tools.tar.xz" >> $out/nix-support/hydra-build-products
echo "file busybox ${build}/on-server/busybox" >> $out/nix-support/hydra-build-products
'';
};
test = ((import ./default.nix) {
inherit system;
customBootstrapFiles = {
busybox = "${build}/on-server/busybox";
bootstrapTools = "${build}/on-server/bootstrap-tools.tar.xz";