nix(refactor): Add withPath to checkedShellScript
This commit is contained in:
@@ -14,10 +14,9 @@ let
|
||||
name = "postgrest-test-memory";
|
||||
docs = "Run the memory tests.";
|
||||
inRootDir = true;
|
||||
withPath = [ postgrestProfiled curl ];
|
||||
}
|
||||
''
|
||||
export PATH="${postgrestProfiled}/bin:${curl}/bin:$PATH"
|
||||
|
||||
${withTools.latest} test/memory-tests.sh
|
||||
'';
|
||||
|
||||
|
||||
+1
-2
@@ -73,10 +73,9 @@ let
|
||||
docs = "Dump the loaded schema's DbStructure as a yaml file.";
|
||||
inRootDir = true;
|
||||
withEnv = postgrest.env;
|
||||
withPath = [ jq ];
|
||||
}
|
||||
''
|
||||
export PATH="${jq}/bin:$PATH"
|
||||
|
||||
${withTools.latest} \
|
||||
${cabal-install}/bin/cabal v2-run ${devCabalOptions} --verbose=0 -- \
|
||||
postgrest --dump-schema \
|
||||
|
||||
@@ -25,6 +25,7 @@ let
|
||||
addCommandCompletion = true;
|
||||
inRootDir = true;
|
||||
redirectTixFiles = false;
|
||||
withPath = [ postgresql ];
|
||||
withTmpDir = true;
|
||||
}
|
||||
''
|
||||
@@ -32,8 +33,7 @@ let
|
||||
if test -v PGRST_DB_URI; then
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
export PATH=${postgresql}/bin:"$PATH"
|
||||
|
||||
setuplog="$tmpdir/setup.log"
|
||||
|
||||
log () {
|
||||
|
||||
Reference in New Issue
Block a user