nix: Export all tools on each toolbox

This allows targeting each tool separately for installs.
This commit is contained in:
Wolfgang Walther
2024-02-26 22:06:01 +01:00
parent 08901323a3
commit c7eb4036a1
12 changed files with 51 additions and 45 deletions
+3 -3
View File
@@ -5,12 +5,12 @@
, extra ? { }
}:
let
bash-completion = builtins.map (tool: tool.bash-completion) tools;
bash-completion = builtins.map (tool: (builtins.getAttr tool tools).bash-completion) (builtins.attrNames tools);
env = buildEnv {
inherit name;
paths = builtins.map (tool: tool.bin) tools;
paths = builtins.map (tool: (builtins.getAttr tool tools).bin) (builtins.attrNames tools);
};
in
env // { inherit bash-completion; } // extra
env // tools // { inherit bash-completion; } // extra