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:
Remo Rechkemmer
2020-11-30 22:21:19 +01:00
committed by GitHub
co-authored by monacoremo <monacoremo>
parent 9adec12a67
commit 07cb47e6ac
13 changed files with 255 additions and 129 deletions
+7 -3
View File
@@ -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; }