12 rustPlatform.buildRustPackage rec {
15 inherit (gpauth) version src meta;
17 buildAndTestSubdir = "apps/gpclient";
18 cargoHash = "sha256-lKfcWKOxpXEB28JajypOdyJNxLIAI8udMlaEo+6pecQ=";
32 substituteInPlace crates/gpapi/src/lib.rs \
33 --replace-fail /usr/bin/gpauth ${gpauth}/bin/gpauth
34 substituteInPlace crates/common/src/vpn_utils.rs \
35 --replace-fail /usr/sbin/vpnc-script ${vpnc-scripts}/bin/vpnc-script
39 mkdir -p $out/share/applications
40 cp packaging/files/usr/share/applications/gpgui.desktop $out/share/applications/gpgui.desktop
44 wrapProgram "$out/bin/gpclient" \
45 --prefix GIO_EXTRA_MODULES : ${glib-networking}/lib/gio/modules
49 substituteInPlace $out/share/applications/gpgui.desktop \
50 --replace-fail /usr/bin/gpclient gpclient