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 { name
, description ? "" , description ? ""
, deps ? [] , deps ? []
}: , ...
}@args:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation (lib.recursiveUpdate {
inherit name; inherit name;
nativeBuildInputs = [ python3 ]; nativeBuildInputs = [ python3 ];
@ -24,4 +25,4 @@ stdenvNoCC.mkDerivation {
''; '';
meta.description = description; meta.description = description;
} } (removeAttrs args [ "name" "description" "deps" ]))