mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 23:51:03 +00:00
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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user