dream2nix/modules/flake-parts/overrides.nix
DavHau 08d414a359 feat: community overrides
- Add community overrides accessible via dream2nix.overrides.{lang}.{pname}
- make the pip module use the overrides for dependencies
2023-09-12 00:07:04 +02:00

14 lines
322 B
Nix

{self, ...}: let
overridesDir = self + "/overrides";
in {
flake.overrides =
builtins.mapAttrs
(
category: _type:
builtins.mapAttrs
(name: _type: overridesDir + "/${category}/${name}")
(builtins.readDir (overridesDir + "/${category}"))
)
(builtins.readDir overridesDir);
}