From 19e6ea2386f9712a2eae375954c63a16f3682053 Mon Sep 17 00:00:00 2001 From: Nikkuss Date: Mon, 17 Mar 2025 12:51:46 +0400 Subject: [PATCH] try fix script --- lib.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib.nix b/lib.nix index 8a27826..adf79ac 100644 --- a/lib.nix +++ b/lib.nix @@ -1,7 +1,7 @@ { pkgs }: let inherit (pkgs) lib; - runtime = ".compose"; + runtime = "$(realpath .compose)"; in { mkWrapper = @@ -142,7 +142,9 @@ in name = "run-postgres"; text = '' set -euo pipefail - export PGDATA=$(realpath ${data_dir}) PGHOST=$(realpath ${runtimeDir}) PGPORT=${builtins.toString port} + export PGDATA=${data_dir} + export PGHOST=${runtimeDir} + export PGPORT=${builtins.toString port} mkdir -p ${lib.escapeShellArg runtimeDir} ${setupScript}/bin/setup-postgres ${package}/bin/postgres