10 lines
287 B
Nix
10 lines
287 B
Nix
{ nixpkgs, ... }:
|
|
|
|
let
|
|
inherit (builtins) match filter foldl';
|
|
inherit (nixpkgs.lib.strings) getName;
|
|
|
|
fold = name: acc: regex:
|
|
if acc == false then false
|
|
else match regex name == null;
|
|
in regexList: filter (pkg: pkg != null -> foldl' (getName pkg |> fold) true regexList)
|