2024-08-31 17:31:01 +02:00
|
|
|
{ nixpkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2024-08-31 19:46:19 +02:00
|
|
|
inherit (builtins) match filter foldl';
|
2024-08-31 17:31:01 +02:00
|
|
|
inherit (nixpkgs.lib.strings) getName;
|
2024-08-31 19:46:19 +02:00
|
|
|
|
|
|
|
fold = name: acc: regex:
|
|
|
|
if acc == false then false
|
|
|
|
else match regex name == null;
|
|
|
|
in regexList: filter (pkg: foldl' (getName pkg |> fold) true regexList)
|