nix-warez/overlay.nix

9 lines
200 B
Nix

final: prev:
let
table = final.callPackage ./table.nix { };
in {
requireFile = { ... }@args: let
hash = args.hash or args.sha256 or args.sha1;
in table.${hash} or (prev.requireFile args);
}