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:
parent
5fb3301dad
commit
928d66083e
1 changed files with 4 additions and 3 deletions
|
@ -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" ]))
|
||||||
|
|
Loading…
Reference in a new issue