nix(fix): Make postgrest-dump-schema work in nix-shell --pure

This commit is contained in:
Wolfgang Walther
2021-04-24 15:07:13 +02:00
committed by Wolfgang Walther
parent e5350d2d50
commit 3611eab39c
+3
View File
@@ -7,6 +7,7 @@
, gnugrep , gnugrep
, haskell , haskell
, hpc-codecov , hpc-codecov
, jq
, postgrest , postgrest
, python3 , python3
, runtimeShell , runtimeShell
@@ -74,6 +75,8 @@ let
withEnv = postgrest.env; withEnv = postgrest.env;
} }
'' ''
export PATH="${jq}/bin:$PATH"
${withTools.latest} \ ${withTools.latest} \
${cabal-install}/bin/cabal v2-run ${devCabalOptions} --verbose=0 -- \ ${cabal-install}/bin/cabal v2-run ${devCabalOptions} --verbose=0 -- \
postgrest --dump-schema \ postgrest --dump-schema \