nix(refactor): Add buildToolbox to streamline module interface towards shell.nix
This commit is contained in:
committed by
Wolfgang Walther
parent
de73ced34a
commit
fe497fc438
+6
-10
@@ -1,5 +1,5 @@
|
||||
{ black
|
||||
, buildEnv
|
||||
, buildToolbox
|
||||
, checkedShellScript
|
||||
, git
|
||||
, hlint
|
||||
@@ -60,13 +60,9 @@ let
|
||||
${shellcheck}/bin/shellcheck test/create_test_db test/memory-tests.sh test/with_tmp_db
|
||||
'';
|
||||
|
||||
tools = [ style styleCheck lint ];
|
||||
|
||||
bashCompletion = builtins.map (tool: tool.bashCompletion) tools;
|
||||
|
||||
in
|
||||
buildEnv
|
||||
{
|
||||
name = "postgrest-style";
|
||||
paths = builtins.map (tool: tool.bin) tools;
|
||||
} // { inherit bashCompletion; }
|
||||
buildToolbox
|
||||
{
|
||||
name = "postgrest-style";
|
||||
tools = [ style styleCheck lint ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user