nixos/printing: simplify filterGutenprint function

This commit is contained in:
Samuel Gräfenstein
2021-03-14 11:59:00 +01:00
parent 7fcc4a8a84
commit 87f4d7a07a

View File

@@ -104,7 +104,7 @@ let
ignoreCollisions = true;
};
filterGutenprint = pkgs: filter (pkg: pkg.meta.isGutenprint or false == true) pkgs;
filterGutenprint = filter (pkg: pkg.meta.isGutenprint or false == true);
containsGutenprint = pkgs: length (filterGutenprint pkgs) > 0;
getGutenprint = pkgs: head (filterGutenprint pkgs);