mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 22:48:02 +03:00
08d414a359
- Add community overrides accessible via dream2nix.overrides.{lang}.{pname} - make the pip module use the overrides for dependencies
14 lines
322 B
Nix
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);
|
|
}
|