mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
intersect -> intersectLists, subtract -> subtractLists
This commit is contained in:
parent
97fcb33ac2
commit
694f01db2d
@ -234,8 +234,8 @@ rec {
|
||||
in [x] ++ remove x xs;
|
||||
|
||||
# Intersects list 'e' and another list
|
||||
intersect = e: filter (x: elem x e);
|
||||
intersectLists = e: filter (x: elem x e);
|
||||
|
||||
# Subtracts list 'e' from another list
|
||||
subtract = e: filter (x: !(elem x e));
|
||||
subtractLists = e: filter (x: !(elem x e));
|
||||
}
|
||||
|
@ -67,9 +67,9 @@ let
|
||||
if filterPlatforms == [] then platforms
|
||||
else
|
||||
if hasPrefix "!" entry then
|
||||
subtract (intersect filterPlatforms nodejs.meta.platforms) platforms
|
||||
subtractLists (intersectLists filterPlatforms nodejs.meta.platforms) platforms
|
||||
else
|
||||
platforms ++ (intersect filterPlatforms nodejs.meta.platforms)
|
||||
platforms ++ (intersectLists filterPlatforms nodejs.meta.platforms)
|
||||
) [] os;
|
||||
|
||||
mapDependencies = deps: f: rec {
|
||||
|
Loading…
Reference in New Issue
Block a user