This commit is contained in:
Frost-Phoenix 2024-01-26 22:13:25 +01:00
parent f76f19102c
commit 3414f3d43f

View file

@ -1,12 +1,14 @@
rec{ {
overlay = final: prev: systems = ["x86_64-linux"];
let
dirContents = builtins.readDir ../pkgs; perSystem = {
genPackage = name: { pkgs,
inherit name; inputs',
value = final.callPackage (../pkgs + "/${name}") { }; ...
}: {
packages = {
# instant repl with automatic flake loading
_2048 = pkgs.callPackage ./2048 {};
};
}; };
names = builtins.attrNames dirContents;
in
builtins.listToAttrs (map genPackage names);
} }