diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-12-07 00:00:56 +0100 |
---|---|---|
committer | Yt <raphael@megzari.com> | 2023-12-15 01:23:21 +0000 |
commit | bf81cded7dfda6d27508cc4638befa87cde00838 (patch) | |
tree | ed061f780be042af16616659fa2a9ab0330fe9eb /pkgs/build-support | |
parent | 5ef866783f04770bb0cc088075eb090627a4f7d4 (diff) |
makeNugetSource: symlink files instead of copying them
this reduces the closure size of the resulting derivation drastically
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/dotnet/make-nuget-source/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/dotnet/make-nuget-source/default.nix b/pkgs/build-support/dotnet/make-nuget-source/default.nix index ddc2e7b52dbbe..48de65e8a8810 100644 --- a/pkgs/build-support/dotnet/make-nuget-source/default.nix +++ b/pkgs/build-support/dotnet/make-nuget-source/default.nix @@ -17,7 +17,7 @@ let # use -L to follow symbolic links. When `projectReferences` is used in # buildDotnetModule, one of the deps will be a symlink farm. find -L ${lib.concatStringsSep " " deps} -type f -name '*.nupkg' -exec \ - cp --no-clobber '{}' $out/lib ';' + ln -s '{}' -t $out/lib ';' # Generates a list of all licenses' spdx ids, if available. # Note that this currently ignores any license provided in plain text (e.g. "LICENSE.txt") |