substituteAllFiles: support postInstall

This commit is contained in:
Nikolay Amiantov 2016-01-09 21:24:26 +03:00
parent 828a7f99fd
commit ded1a55b8d

View File

@ -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)