feat(overlay): with overlay

This commit is contained in:
catvayor 2024-10-25 18:09:45 +02:00
parent c393361e83
commit a5b2e66fa1
Signed by: lbailly
GPG key ID: CE3E645251AC63F3
2 changed files with 9 additions and 5 deletions

View file

@ -1,5 +1,4 @@
{ pkgs, lib ? pkgs.lib }: with lib;
mapAttrs' (name: _: {
value = pkgs.python3.pkgs.callPackage (./python-pkgs/${name}) { };
name = removeSuffix ".nix" name;
}) (builtins.readDir ./python-pkgs)
{
pkgs ? (import <nixpkgs> { }),
}:
import pkgs.path { overlays = pkgs.overlays ++ [ (import ./overlay.nix) ]; }

5
overlay.nix Normal file
View 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)