diff --git a/lib.nix b/lib.nix index be30b2a..3b7b9c0 100644 --- a/lib.nix +++ b/lib.nix @@ -1,7 +1,7 @@ { pkgs }: let inherit (pkgs) lib; - runtime = "$(realpath .compose)"; + runtime = ".compose"; in { mkWrapper = @@ -142,8 +142,8 @@ in name = "run-postgres"; text = '' set -euo pipefail - PGDATA=${data_dir} - PGHOST=${runtimeDir} + PGDATA=$(realpath ${data_dir}) + PGHOST=$(realpath ${runtimeDir}) PGPORT=${builtins.toString port} export PGDATA PGHOST PGPORT mkdir -p ${lib.escapeShellArg runtimeDir}