buildDotnetModule: use platform-agnostic cp format

cp on macOS doesn't support the -T flag, which causes the fetch-deps
script to fail. Appending `/.` to the source argument replicates the
same functionality.
This commit is contained in:
Evan Petousis 2022-08-01 18:05:58 +10:00
parent 524d281acd
commit d7728dfc67
No known key found for this signature in database
GPG key ID: 89F675EAFEFE6CA5

View file

@ -145,7 +145,7 @@ in stdenvNoCC.mkDerivation (args // {
store_src="${srcOnly args}"
src="$(mktemp -d /tmp/${pname}.XXX)"
cp -rT "$store_src" "$src"
cp -r "$store_src/." "$src"
chmod -R +w "$src"
trap "rm -rf $src $HOME" EXIT