Add interdependable packages

This commit is contained in:
Waldemar Tomme
2025-04-16 18:14:20 +02:00
parent 432202f54a
commit c0fb603a9c
4 changed files with 12 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/result

View File

@@ -0,0 +1,2 @@
{ hello-world }:
hello-world

View File

@@ -0,0 +1,2 @@
{ hello }:
hello

View File

@@ -6,12 +6,18 @@ let
inherit (nixpkgs.lib)
map
listToAttrs
packagesFromDirectoryRecursive
callPackageWith
;
pkgsForSystem = system:
let
pkgs = nixpkgs.legacyPackages.${system};
localPkgs = packagesFromDirectoryRecursive {
callPackage = callPackageWith (pkgs // localPkgs);
directory = ./by-name;
};
in
null;
localPkgs;
pkgsSets =
listToAttrs
(