gpclient: refactor to make update script work (#453468)

This commit is contained in:
Wolfgang Walther
2025-10-20 10:31:44 +00:00
committed by GitHub
+7 -13
View File
@@ -8,26 +8,20 @@
perl,
pkg-config,
vpnc-scripts,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
pname = "gpclient";
version = "2.4.1";
src = fetchFromGitHub {
owner = "yuezk";
repo = "GlobalProtect-openconnect";
rev = "v${version}";
hash = "sha256-MY4JvftrC6sR8M0dFvnGZOkvHIhPRcyct9AG/8527gw=";
};
inherit (gpauth) meta;
inherit (gpauth)
src
version
cargoHash
meta
;
buildAndTestSubdir = "apps/gpclient";
cargoHash = "sha256-8LSGuRnWRWeaY6t25GdZ2y4hGIJ+mP3UBXRjcvPuD6U=";
nativeBuildInputs = [
perl
makeWrapper