diff --git a/lib.nix b/lib.nix index d1696b0..a6000ae 100644 --- a/lib.nix +++ b/lib.nix @@ -55,6 +55,7 @@ in pkgs.writeShellApplication { inherit name; text = '' + PC_CONFIG_FILES=${configFile} RUNTIME_PATH=$(pwd)/${runtime} ${pkgs.process-compose}/bin/process-compose "$@" ''; }; @@ -142,7 +143,7 @@ in PGDATA=$RUNTIME_PATH/${name}/data PGHOST=$RUNTIME_PATH/${name}/socket PGPORT=${builtins.toString port} - mkdir -p $PGHOST + mkdir -p "$PGHOST" echo "Starting postgres with PGDATA=''${PGDATA} PGHOST=''${PGHOST} PGPORT=''${PGPORT}" export PGDATA PGHOST PGPORT ${setupScript}/bin/setup-postgres