nix: add postgrest-repl command

This commit is contained in:
steve-chavez
2023-08-17 13:43:48 -05:00
committed by Steve Chavez
parent 32b77cae6c
commit 739f056b0a
2 changed files with 31 additions and 1 deletions
+13
View File
@@ -57,6 +57,18 @@ let
postgrest "''${_arg_leftovers[@]}"
'';
repl =
checkedShellScript
{
name = "postgrest-repl";
docs = "Interact with PostgREST modules using the cabal repl";
args = [ "ARG_LEFTOVERS([cabal v2-repl arguments])" ];
inRootDir = true;
withEnv = postgrest.env;
}
''
exec ${cabal-install}/bin/cabal v2-repl "''${_arg_leftovers[@]}"
'';
in
buildToolbox
{
@@ -65,5 +77,6 @@ buildToolbox
build
clean
run
repl
];
}