1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-09 22:14:06 +00:00
nixpkgs/pkgs/os-specific/linux/kernel/cpu-cgroup-v2-patches/default.nix

12 lines
334 B
Nix
Raw Normal View History

let
ents = builtins.readDir ./.;
in builtins.listToAttrs (builtins.filter (x: x != null) (map (name: let
match = builtins.match "(.*)\\.patch" name;
in if match == null then null else {
name = builtins.head match;
value = {
name = "cpu-cgroup-v2-${name}";
patch = ./. + "/${name}";
};
}) (builtins.attrNames ents)))