mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
41cc6ecdbb
hydra build product for easy tarball download. svn path=/nixos/trunk/; revision=22440
23 lines
839 B
Nix
23 lines
839 B
Nix
args: with args;
|
|
|
|
# TODO add revision number or such
|
|
runCommand "nixos-bootstrap-archive" { } ''
|
|
PATH=${perl}/bin:${coreutils}/bin:${gnutar}/bin:${bzip2}/bin
|
|
storePaths=$(perl ${pathsFromGraph} ${nixClosure})
|
|
|
|
s(){ echo -C $(dirname $1) $(basename $1); }
|
|
|
|
mkdir $out
|
|
tar cf tmp.tar ${nixClosure} $storePaths
|
|
cp ${./README-BOOTSTRAP-NIXOS} README-BOOTSTRAP-NIXOS
|
|
tar --append -f tmp.tar README-BOOTSTRAP-NIXOS
|
|
tar --append -f tmp.tar --transform 's@^@/nix/store/@' \
|
|
$(s ${nixosPrepareInstall}/bin/nixos-prepare-install ) \
|
|
$(s ${runInChroot}/bin/run-in-chroot ) \
|
|
$(s ${nixosBootstrap}/bin/nixos-bootstrap )
|
|
|
|
cat tmp.tar | bzip2 > $out/nixos-install-archive.tar.bz2
|
|
ensureDir $out/nix-support
|
|
echo "file tarball" $out/nixos-install-archive.tar.bz2 > $out/nix-support/hydra-build-products
|
|
''
|