sd-image: Add the compressed file path for hydra.

This makes the nixos on arm user instructions work again.
This commit is contained in:
Colin L Rice 2019-11-03 19:25:26 -05:00
parent 1c4b13bb5b
commit c861f8083d

View File

@ -140,7 +140,11 @@ in
export img=$out/sd-image/${config.sdImage.imageName}
echo "${pkgs.stdenv.buildPlatform.system}" > $out/nix-support/system
echo "file sd-image $img" >> $out/nix-support/hydra-build-products
if test -n "$compressImage"; then
echo "file sd-image $img.bz2" >> $out/nix-support/hydra-build-products
else
echo "file sd-image $img" >> $out/nix-support/hydra-build-products
fi
# Gap in front of the first partition, in MiB
gap=8