From 69a9380edb5e1d12ddff78159e30c1229a8d2009 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 25 Jul 2025 16:50:53 +0300 Subject: feat(autoconfig): Pass the custom packages to themselves as dependencies --- autoconfig.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'autoconfig.nix') diff --git a/autoconfig.nix b/autoconfig.nix index 2872be6..350f2bf 100644 --- a/autoconfig.nix +++ b/autoconfig.nix @@ -4,10 +4,13 @@ let inherit (nixpkgs) lib; custom-packages = system: - lib.mapAttrs - (name: _: - nixpkgs.legacyPackages.${system}.callPackage ./packages/${name} { }) - (lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./packages)); + let + packages = lib.mapAttrs + (name: _: + nixpkgs.legacyPackages.${system}.callPackage ./packages/${name} packages) + (lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./packages)); + in + packages; in { configurations = lib.mapAttrs -- cgit v1.3.1-26-gb76a