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.
This commit is contained in:
Ihar Hrachyshka
2026-07-02 20:03:33 -04:00
parent 0ebe44573f
commit 9fa6dd7cb9

View File

@@ -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 \