zaphyra's git: haumea

fork of https://github.com/nix-community/haumea

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
{ lib }:

let
  inherit (builtins)
    stringLength
    ;
  inherit (lib)
    hasSuffix
    ;
in

ext: f: {
  matches = file: hasSuffix ".${ext}" file
    && stringLength file > (stringLength ext + 1);
  loader = f;
}