From a5b2e66fa1c69c281faf4946b92a91b4ff8219d1 Mon Sep 17 00:00:00 2001 From: catvayor Date: Fri, 25 Oct 2024 18:09:45 +0200 Subject: [PATCH] feat(overlay): with overlay --- default.nix | 9 ++++----- overlay.nix | 5 +++++ 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 overlay.nix diff --git a/default.nix b/default.nix index 12bc932..9cb4d12 100644 --- a/default.nix +++ b/default.nix @@ -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 { }), +}: +import pkgs.path { overlays = pkgs.overlays ++ [ (import ./overlay.nix) ]; } diff --git a/overlay.nix b/overlay.nix new file mode 100644 index 0000000..62544ac --- /dev/null +++ b/overlay.nix @@ -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)