Improve dev tools in the Nix environment (#1666)
* Improve dev tools in the nix environment Added postgrest-build, postgrest-run, postgrest-clean, postgrest-check and postgrest-watch tools. Changed order of postgrest-test-spec-all to run backwards from pg13 to pg9.5. Added shellcheck to lint shell scripts in nix environment. Co-authored-by: monacoremo <monacoremo>
This commit is contained in:
co-authored by
monacoremo <monacoremo>
parent
9adec12a67
commit
07cb47e6ac
@@ -1,4 +1,8 @@
|
||||
{ buildEnv, postgrest, dockerTools, writeShellScriptBin }:
|
||||
{ buildEnv
|
||||
, postgrest
|
||||
, dockerTools
|
||||
, checkedShellScript
|
||||
}:
|
||||
let
|
||||
config =
|
||||
./postgrest.conf;
|
||||
@@ -52,7 +56,7 @@ let
|
||||
|
||||
# Helper script for loading the image.
|
||||
load =
|
||||
writeShellScriptBin "postgrest-docker-load"
|
||||
checkedShellScript "postgrest-docker-load"
|
||||
''
|
||||
docker load -i ${image}
|
||||
'';
|
||||
@@ -60,5 +64,5 @@ in
|
||||
buildEnv
|
||||
{
|
||||
name = "postgrest-docker";
|
||||
paths = [ load ];
|
||||
paths = [ load.bin ];
|
||||
} // { inherit image config; }
|
||||
|
||||
Reference in New Issue
Block a user