chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / gp / gpclient / package.nix
blob786123e74d443d312352b9f10c24c1331256a996
2   rustPlatform,
3   gpauth,
4   openconnect,
5   openssl,
6   perl,
7   vpnc-scripts,
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "gpclient";
13   inherit (gpauth) version src meta;
15   buildAndTestSubdir = "apps/gpclient";
16   cargoHash = "sha256-aJYFBvVrj1n2+9WLLBH5WTRRzTle19LsdJ2DielJYik=";
18   nativeBuildInputs = [ perl ];
19   buildInputs = [
20     gpauth
21     openconnect
22     openssl
23   ];
25   preConfigure = ''
26     substituteInPlace crates/gpapi/src/lib.rs \
27       --replace-fail /usr/bin/gpauth ${gpauth}/bin/gpauth
28     substituteInPlace crates/common/src/vpn_utils.rs \
29       --replace-fail /usr/sbin/vpnc-script ${vpnc-scripts}/bin/vpnc-script
30   '';
32   postInstall = ''
33     mkdir -p $out/share/applications
34     cp packaging/files/usr/share/applications/gpgui.desktop $out/share/applications/gpgui.desktop
35   '';
37   postFixup = ''
38     substituteInPlace $out/share/applications/gpgui.desktop \
39       --replace-fail /usr/bin/gpclient $out/bin/gpclient
40   '';