diff options
author | zimbatm <zimbatm@zimbatm.com> | 2022-06-21 15:37:15 +0200 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2022-06-21 15:45:52 +0200 |
commit | ba2f31b6db0d71969bb1fcbeaed30925a935a5b0 (patch) | |
tree | 7bf1aaaf81819041f6ab22e15762af1d3f8106fa /pkgs/build-support | |
parent | 0d68d7c857fe301d49cdcd56130e0beea4ecd5aa (diff) |
buildDotnetModule: allow passing derivations to nugetDeps
Sometimes I want to pass a different implementation of `mkNugetDeps`. For example in private repos, it can be handy to use `__noChroot = true` and bypass the deps.nix generation altogether. Or some Nuget packages ship with ELF binaries that need to be patched, and that's best done as soon as possible.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/dotnet/build-dotnet-module/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index fa987237a75cb..96e7596ed6253 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -78,7 +78,9 @@ let then linkFarmFromDrvs "${name}-project-references" projectReferences else null; - _nugetDeps = mkNugetDeps { inherit name; nugetDeps = import nugetDeps; }; + _nugetDeps = if lib.isDerivation nugetDeps + then nugetDeps + else mkNugetDeps { inherit name; nugetDeps = import nugetDeps; }; nuget-source = mkNugetSource { name = "${name}-nuget-source"; |