Merge pull request #5 from IowaCityMesh/hydra-build-products
lib.build: generate hydra-build-products
This commit is contained in:
commit
eb8695232b
13
builder.nix
13
builder.nix
|
@ -92,7 +92,18 @@ stdenv.mkDerivation {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
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;
|
dontFixup = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user