summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authormdarocha <git@mdarocha.pl>2023-09-30 13:21:12 +0200
committermdarocha <git@mdarocha.pl>2023-09-30 13:21:12 +0200
commit8318df5b630579a910fd2fd3ae46bdfec37d1ef4 (patch)
treeaf6c6d268d101f5fbd587de3e6ecfc7988f78a6a /pkgs/build-support
parent7b22218f11c9b8c3cc4b3baa97969201238d6783 (diff)
downloadnixpkgs-8318df5b630579a910fd2fd3ae46bdfec37d1ef4.tar
nixpkgs-8318df5b630579a910fd2fd3ae46bdfec37d1ef4.tar.gz
nixpkgs-8318df5b630579a910fd2fd3ae46bdfec37d1ef4.tar.bz2
nixpkgs-8318df5b630579a910fd2fd3ae46bdfec37d1ef4.tar.lz
nixpkgs-8318df5b630579a910fd2fd3ae46bdfec37d1ef4.tar.xz
nixpkgs-8318df5b630579a910fd2fd3ae46bdfec37d1ef4.tar.zst
nixpkgs-8318df5b630579a910fd2fd3ae46bdfec37d1ef4.zip
buildDotnetModule: fix running fetch-deps with no nugetDeps defined.
This eases the initial setup when creating a package
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/dotnet/build-dotnet-module/default.nix2
1 files changed, 1 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 686d89f8c11..02776d57c91 100644
--- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix
+++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix
@@ -172,7 +172,7 @@ stdenvNoCC.mkDerivation (args // {
 
   passthru = {
     inherit nuget-source;
-  } // lib.optionalAttrs (nugetDepsFile != null) {
+  } // lib.optionalAttrs (!lib.isDerivation nugetDeps) {
     fetch-deps =
       let
         flags = dotnetFlags ++ dotnetRestoreFlags;