diff options
author | Ivv <41924494+IvarWithoutBones@users.noreply.github.com> | 2022-06-21 16:00:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 16:00:48 +0200 |
commit | 8168651288c40eeb2e82b8e1532d6a5e6df91748 (patch) | |
tree | bb78d009c7810fc877ff65c22f9155e2cab2d5ad /pkgs/build-support/dotnet | |
parent | 3d82b8d13befb24ac9b2b78722038b0168a295f5 (diff) | |
parent | ba2f31b6db0d71969bb1fcbeaed30925a935a5b0 (diff) |
Merge pull request #178446 from zimbatm/dotnet-nugetdeps
buildDotnetModule: allow passing derivations to nugetDeps
Diffstat (limited to 'pkgs/build-support/dotnet')
-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 0750699ec0c58..a689cbcfb68ea 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"; |