substituteAllFiles: support postInstall
This commit is contained in:
parent
828a7f99fd
commit
ded1a55b8d
@ -12,11 +12,14 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
args=
|
args=
|
||||||
|
|
||||||
cd "$src"
|
pushd "$src"
|
||||||
echo -ne "${concatStringsSep "\\0" args.files}" | xargs -0 -n1 -I {} -- find {} -type f -print0 | while read -d "" line; do
|
echo -ne "${concatStringsSep "\\0" args.files}" | xargs -0 -n1 -I {} -- find {} -type f -print0 | while read -d "" line; do
|
||||||
mkdir -p "$out/$(dirname "$line")"
|
mkdir -p "$out/$(dirname "$line")"
|
||||||
substituteAll "$line" "$out/$line"
|
substituteAll "$line" "$out/$line"
|
||||||
done
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
|
eval "$postInstall"
|
||||||
'';
|
'';
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
} // args)
|
} // args)
|
||||||
|
Loading…
Reference in New Issue
Block a user