nix(refactor): Add buildToolbox to streamline module interface towards shell.nix

This commit is contained in:
Wolfgang Walther
2021-04-18 13:51:39 +02:00
committed by Wolfgang Walther
parent de73ced34a
commit fe497fc438
13 changed files with 94 additions and 91 deletions
+6 -10
View File
@@ -1,4 +1,4 @@
{ buildEnv
{ buildToolbox
, checkedShellScript
, curl
, docker
@@ -166,13 +166,9 @@ let
[ "$responseCode" -eq 200 ]
'';
tools = [ github dockerLogin dockerHub dockerHubDescription ];
bashCompletion = builtins.map (tool: tool.bashCompletion) tools;
in
buildEnv
{
name = "postgrest-release";
paths = builtins.map (tool: tool.bin) tools;
} // { inherit bashCompletion; }
buildToolbox
{
name = "postgrest-release";
tools = [ github dockerLogin dockerHub dockerHubDescription ];
}