Skip to content

Commit

Permalink
release-lib: Avoid filtering twice
Browse files Browse the repository at this point in the history
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,
  • Loading branch information
Ericson2314 committed Jun 12, 2020
1 parent e596d5c commit 2a8b8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/top-level/release-lib.nix
Expand Up @@ -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
Expand Down

0 comments on commit 2a8b8f6

Please sign in to comment.