chatai/postgrest_v12.2.8/nix/overlays/build-toolbox/build-toolbox.nix

17 lines
454 B
Nix

# Creates an environment that exposes bash-completion arguments from all checkedShellScripts
{ buildEnv }:
{ name
, tools
, extra ? { }
}:
let
bash-completion = builtins.map (tool: (builtins.getAttr tool tools).bash-completion) (builtins.attrNames tools);
env = buildEnv {
inherit name;
paths = builtins.map (tool: (builtins.getAttr tool tools).bin) (builtins.attrNames tools);
};
in
env // tools // { inherit bash-completion; } // extra