mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
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
@ -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" ]))
|
||||
|
Loading…
Reference in New Issue
Block a user