mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
nixos/printing: simplify filterGutenprint function
This commit is contained in:
parent
7fcc4a8a84
commit
87f4d7a07a
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ let
|
||||||
ignoreCollisions = true;
|
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;
|
containsGutenprint = pkgs: length (filterGutenprint pkgs) > 0;
|
||||||
getGutenprint = pkgs: head (filterGutenprint pkgs);
|
getGutenprint = pkgs: head (filterGutenprint pkgs);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue