Skip to content

Commit

Permalink
mkNugetSource: Allow passing arbitrary stdenv.mkDerivation attrs
Browse files Browse the repository at this point in the history
This allows things such as

    mkNugetSource {
        name = "foo-nuget-source";
        deps = [ ... ];
        meta = {
            hydraPlatforms = [ ];
        };
    }
  • Loading branch information
raphaelr committed Jan 2, 2024
1 parent 5fb3301 commit 928d660
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/build-support/dotnet/make-nuget-source/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
{ name
, description ? ""
, deps ? []
}:
, ...
}@args:

stdenvNoCC.mkDerivation {
stdenvNoCC.mkDerivation (lib.recursiveUpdate {
inherit name;

nativeBuildInputs = [ python3 ];
Expand All @@ -24,4 +25,4 @@ stdenvNoCC.mkDerivation {
'';

meta.description = description;
}
} (removeAttrs args [ "name" "description" "deps" ]))

0 comments on commit 928d660

Please sign in to comment.