feat(overlay): with overlay
This commit is contained in:
parent
c393361e83
commit
a5b2e66fa1
2 changed files with 9 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)
|
|
||||||
|
|
5
overlay.nix
Normal file
5
overlay.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
self: super: with super.lib;
|
||||||
|
mapAttrs' (name: _: {
|
||||||
|
value = self.python3.pkgs.callPackage (./python-pkgs/${name}) { };
|
||||||
|
name = removeSuffix ".nix" name;
|
||||||
|
}) (builtins.readDir ./python-pkgs)
|
Loading…
Reference in a new issue