From 928d66083e5bae2f4d2ef622a2d53b3ac8760297 Mon Sep 17 00:00:00 2001 From: Raphael Robatsch Date: Tue, 2 Jan 2024 11:01:41 +0100 Subject: [PATCH] mkNugetSource: Allow passing arbitrary stdenv.mkDerivation attrs This allows things such as mkNugetSource { name = "foo-nuget-source"; deps = [ ... ]; meta = { hydraPlatforms = [ ]; }; } --- pkgs/build-support/dotnet/make-nuget-source/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/dotnet/make-nuget-source/default.nix b/pkgs/build-support/dotnet/make-nuget-source/default.nix index 6964627a8398..4cf9c1a7412a 100644 --- a/pkgs/build-support/dotnet/make-nuget-source/default.nix +++ b/pkgs/build-support/dotnet/make-nuget-source/default.nix @@ -3,9 +3,10 @@ { name , description ? "" , deps ? [] -}: +, ... +}@args: -stdenvNoCC.mkDerivation { +stdenvNoCC.mkDerivation (lib.recursiveUpdate { inherit name; nativeBuildInputs = [ python3 ]; @@ -24,4 +25,4 @@ stdenvNoCC.mkDerivation { ''; meta.description = description; -} +} (removeAttrs args [ "name" "description" "deps" ]))