From d7728dfc671c56a1929665abd1e2fd07d64360e1 Mon Sep 17 00:00:00 2001 From: Evan Petousis Date: Mon, 1 Aug 2022 18:05:58 +1000 Subject: [PATCH] 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. --- pkgs/build-support/dotnet/build-dotnet-module/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index 1a5d499929ac..5ccff2f2a198 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -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