Merge pull request #7556 from offlinehacker/pkgs/node-packages/fix_platforms

nodePackages: fix platform detection
This commit is contained in:
Jaka Hudoklin 2015-04-25 16:21:51 +02:00
commit 5e2b429e82

View File

@ -64,7 +64,7 @@ let
stdenv.lib.platforms.${removePrefix "!" entry} or [];
in
# Ignore unknown platforms
if filterPlatforms == [] then platforms
if filterPlatforms == [] then (if platforms == [] then nodejs.meta.platforms else platforms)
else
if hasPrefix "!" entry then
subtractLists (intersectLists filterPlatforms nodejs.meta.platforms) platforms