fix: substitute NixOS gpservice wrapper path

This commit is contained in:
Kevin Yue committed 2026-06-21 15:26:52 +08:00
1 parent d27029fad8
commit 7b6d20a003
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -245,7 +245,7 @@
set -eu
gpclient_fhs='${prebuiltCommands.gpclient}/bin/gpclient'
gpservice_public='$out/bin/gpservice'
gpservice_public='@gpservice_public@'
if [ "''${1:-}" = "launch-gui" ]; then
shift
@@ -304,6 +304,8 @@
exec "$gpclient_fhs" "$@"
EOF
substituteInPlace $out/bin/gpclient \
--replace-fail '@gpservice_public@' "$out/bin/gpservice"
chmod +x $out/bin/gpclient
ln -s ${prebuiltCommands.gpservice}/bin/gpservice $out/bin/gpservice
ln -s ${prebuiltCommands.gpauth}/bin/gpauth $out/bin/gpauth