3
0
Fork 0
forked from mirrors/nixpkgs

release-lib: Avoid filtering twice

We were using `supportedMatches` both when getting the list of
platforms, and before `genAttrs` the derivation for each. Now we just
filter the second time,
This commit is contained in:
John Ericson 2020-06-12 15:23:21 -04:00
parent e596d5cd63
commit 2a8b8f6593

View file

@ -145,7 +145,7 @@ rec {
let res = builtins.tryEval (
if isDerivation value then
value.meta.hydraPlatforms
or (supportedMatches (value.meta.platforms or [ "x86_64-linux" ]))
or (value.meta.platforms or [ "x86_64-linux" ])
else if value.recurseForDerivations or false || value.recurseForRelease or false then
packagePlatforms value
else