From f9a715c71e102177ccdcdf123b617df1704ced12 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sat, 26 Oct 2024 23:35:16 +0200 Subject: [PATCH] lib/removePackages: Handle null packages --- lib/removePackages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/removePackages.nix b/lib/removePackages.nix index a1fdd8b..11c9689 100644 --- a/lib/removePackages.nix +++ b/lib/removePackages.nix @@ -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)