mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
substract -> subtract
This commit is contained in:
parent
16d8a67e75
commit
829479d1dd
@ -236,6 +236,6 @@ rec {
|
|||||||
# Intersects list 'e' and another list
|
# Intersects list 'e' and another list
|
||||||
intersect = e: filter (x: elem x e);
|
intersect = e: filter (x: elem x e);
|
||||||
|
|
||||||
# Substracts list 'e' from another list
|
# Subtracts list 'e' from another list
|
||||||
substract = e: filter (x: !(elem x e));
|
subtract = e: filter (x: !(elem x e));
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ let
|
|||||||
if filterPlatforms == [] then platforms
|
if filterPlatforms == [] then platforms
|
||||||
else
|
else
|
||||||
if hasPrefix "!" entry then
|
if hasPrefix "!" entry then
|
||||||
substract (intersect filterPlatforms nodejs.meta.platforms) platforms
|
subtract (intersect filterPlatforms nodejs.meta.platforms) platforms
|
||||||
else
|
else
|
||||||
platforms ++ (intersect filterPlatforms nodejs.meta.platforms)
|
platforms ++ (intersect filterPlatforms nodejs.meta.platforms)
|
||||||
) [] os;
|
) [] os;
|
||||||
|
Loading…
Reference in New Issue
Block a user