lib/removePackages: Handle null packages
Some checks are pending
nix flake check / check (aarch64-linux) (push) Waiting to run
nix flake check / check (x86_64-linux) (push) Waiting to run

This commit is contained in:
Mikael 2024-10-26 23:35:16 +02:00
parent 10373f55a4
commit f9a715c71e
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -7,4 +7,4 @@ let
fold = name: acc: regex:
if acc == false then false
else match regex name == null;
in regexList: filter (pkg: foldl' (getName pkg |> fold) true regexList)
in regexList: filter (pkg: pkg != null -> foldl' (getName pkg |> fold) true regexList)