nix-warez/overlay.nix

9 lines
200 B
Nix
Raw Normal View History

2023-10-23 22:37:48 +02:00
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);
}