10 rustPlatform.buildRustPackage rec {
13 inherit (gpauth) version src meta;
15 buildAndTestSubdir = "apps/gpclient";
16 cargoHash = "sha256-aJYFBvVrj1n2+9WLLBH5WTRRzTle19LsdJ2DielJYik=";
18 nativeBuildInputs = [ perl ];
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
33 mkdir -p $out/share/applications
34 cp packaging/files/usr/share/applications/gpgui.desktop $out/share/applications/gpgui.desktop
38 substituteInPlace $out/share/applications/gpgui.desktop \
39 --replace-fail /usr/bin/gpclient $out/bin/gpclient