Merge pull request #278242 from raphaelr/mknugetsource-remove-ifd
mkNugetSource: Remove meta.licenses attribute
This commit is contained in:
commit
b0fb3f62d0
@ -3,10 +3,10 @@
|
|||||||
{ name
|
{ name
|
||||||
, description ? ""
|
, description ? ""
|
||||||
, deps ? []
|
, deps ? []
|
||||||
}:
|
, ...
|
||||||
|
}@args:
|
||||||
|
|
||||||
let
|
stdenvNoCC.mkDerivation (lib.recursiveUpdate {
|
||||||
nuget-source = stdenvNoCC.mkDerivation {
|
|
||||||
inherit name;
|
inherit name;
|
||||||
|
|
||||||
nativeBuildInputs = [ python3 ];
|
nativeBuildInputs = [ python3 ];
|
||||||
@ -25,14 +25,4 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
meta.description = description;
|
meta.description = description;
|
||||||
} // { # We need data from `$out` for `meta`, so we have to use overrides as to not hit infinite recursion.
|
} (removeAttrs args [ "name" "description" "deps" ]))
|
||||||
meta = nuget-source.meta // {
|
|
||||||
licenses = let
|
|
||||||
# TODO: avoid IFD
|
|
||||||
depLicenses = lib.splitString "\n" (builtins.readFile "${nuget-source}/share/licenses");
|
|
||||||
in lib.flatten (lib.forEach depLicenses (spdx:
|
|
||||||
lib.optionals (spdx != "") (lib.getLicenseFromSpdxId spdx)
|
|
||||||
));
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in nuget-source
|
|
||||||
|
Loading…
Reference in New Issue
Block a user