From 9fa6dd7cb9190bfee4d5bd1ecf45fff44d1dfe27 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Thu, 2 Jul 2026 20:03:33 -0400 Subject: [PATCH] gpclient: patch libexec fallback paths Some additional fallback paths were added in the recent update. Nothing is broken, but it's better to avoid impurities. --- pkgs/by-name/gp/gpclient/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/gp/gpclient/package.nix b/pkgs/by-name/gp/gpclient/package.nix index d950e936f37c..dcf730dde72e 100644 --- a/pkgs/by-name/gp/gpclient/package.nix +++ b/pkgs/by-name/gp/gpclient/package.nix @@ -82,7 +82,9 @@ rustPlatform.buildRustPackage { postPatch = '' substituteInPlace crates/openconnect/src/vpn_utils.rs \ + --replace-fail /usr/local/libexec/gpclient/vpnc-script $out/libexec/gpclient/vpnc-script \ --replace-fail /usr/libexec/gpclient/vpnc-script $out/libexec/gpclient/vpnc-script \ + --replace-fail /usr/local/libexec/gpclient/hipreport.sh $out/libexec/gpclient/hipreport.sh \ --replace-fail /usr/libexec/gpclient/hipreport.sh $out/libexec/gpclient/hipreport.sh substituteInPlace crates/common/src/constants.rs \ @@ -99,7 +101,9 @@ rustPlatform.buildRustPackage { cp -r packaging/files/usr/libexec $out/libexec substituteInPlace $out/libexec/gpclient/hipreport.sh \ - --replace-fail /usr/bin/gpclient $out/bin/gpclient + --replace-fail /usr/bin/gpclient $out/bin/gpclient \ + --replace-fail /opt/homebrew/bin/gpclient $out/bin/gpclient \ + --replace-fail /usr/local/bin/gpclient $out/bin/gpclient '' + lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace $out/libexec/gpclient/vpnc-script \