From 802741a5292636b9a1619c712e128a77976e9d31 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 30 May 2024 17:29:18 +0200 Subject: add local submodules to nix path --- shell.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index 7714e111..d1270312 100644 --- a/shell.nix +++ b/shell.nix @@ -3,9 +3,17 @@ let nixpkgs = sources.nixpkgs; pkgs = import nixpkgs { }; - lib = import ./lib { inherit pkgs; }; + inherit (pkgs) lib; + # lib = import ./lib { inherit pkgs; }; + inherit (import ./lib { inherit pkgs; }) mkNixPath fromSources; - nixPath = builtins.concatStringsSep ":" (lib.mkNixPath sources); + nixPath = builtins.concatStringsSep ":" (mkNixPath + ({ + personal = ./packages; + nixpkgs-overlays = ./overlays; + private = ./private; + } // (fromSources sources)) + ); in pkgs.mkShell { -- cgit 1.4.1