diff --git a/pkgs/by-name/gp/gpclient/package.nix b/pkgs/by-name/gp/gpclient/package.nix index f319fd0e1345..78e6c0a975bf 100644 --- a/pkgs/by-name/gp/gpclient/package.nix +++ b/pkgs/by-name/gp/gpclient/package.nix @@ -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