mkNugetSource: Allow passing arbitrary stdenv.mkDerivation attrs

This allows things such as

    mkNugetSource {
        name = "foo-nuget-source";
        deps = [ ... ];
        meta = {
            hydraPlatforms = [ ];
        };
    }
This commit is contained in:
Raphael Robatsch 2024-01-02 11:01:41 +01:00
parent 5fb3301dad
commit 928d66083e

View File

@ -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" ]))