Merge pull request #5 from IowaCityMesh/hydra-build-products

lib.build: generate hydra-build-products
This commit is contained in:
Astro 2022-05-31 21:46:16 +02:00 committed by GitHub
commit eb8695232b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,18 @@ stdenv.mkDerivation {
'';
installPhase = ''
cp -ar bin/targets/${target}/${variant} $out
mkdir -p $out/nix-support
pushd bin/targets/${target}/${variant}
for src in *; do
dst="$out/$src"
cp -ar "$src" "$dst"
if [ -f "$dst" ]; then
filename=$(basename "$dst")
echo "file ''${filename##*.} $dst" >> $out/nix-support/hydra-build-products
fi
done
popd
'';
dontFixup = true;
}