feat(overlay): with overlay
This commit is contained in:
parent
c393361e83
commit
5b975b9895
3 changed files with 13 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, lib ? pkgs.lib }: with lib;
|
{
|
||||||
mapAttrs' (name: _: {
|
pkgs ? (import <nixpkgs> { }),
|
||||||
value = pkgs.python3.pkgs.callPackage (./python-pkgs/${name}) { };
|
}:
|
||||||
name = removeSuffix ".nix" name;
|
import pkgs.path { overlays = pkgs.overlays ++ [ (import ./overlay.nix) ]; }
|
||||||
}) (builtins.readDir ./python-pkgs)
|
|
||||||
|
|
3
overlay.nix
Normal file
3
overlay.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
final: prev: with prev.lib; {
|
||||||
|
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [ (import ./python_overlay.nix) ];
|
||||||
|
}
|
6
python_overlay.nix
Normal file
6
python_overlay.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
final: prev:
|
||||||
|
with prev.lib;
|
||||||
|
mapAttrs' (name: _: {
|
||||||
|
value = final.callPackage (./python-pkgs/${name}) { };
|
||||||
|
name = removeSuffix ".nix" name;
|
||||||
|
}) (builtins.readDir ./python-pkgs)
|
Loading…
Reference in a new issue