From adae70b64598469854bde3407167432a6d42a16d Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Sun, 7 Apr 2024 17:23:48 +0900 Subject: [PATCH] vrc-get: 1.5.2 -> 1.8.0 --- pkgs/tools/misc/vrc-get/default.nix | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/pkgs/tools/misc/vrc-get/default.nix b/pkgs/tools/misc/vrc-get/default.nix index e89d4d475834..140fba5c11f3 100644 --- a/pkgs/tools/misc/vrc-get/default.nix +++ b/pkgs/tools/misc/vrc-get/default.nix @@ -1,28 +1,23 @@ -{ fetchFromGitHub, lib, rustPlatform, pkg-config, openssl, stdenv, Security, SystemConfiguration }: +{ fetchCrate, lib, rustPlatform, pkg-config, stdenv, Security, SystemConfiguration }: rustPlatform.buildRustPackage rec { pname = "vrc-get"; - version = "1.5.2"; + version = "1.8.0"; - src = fetchFromGitHub { - owner = "anatawa12"; - repo = pname; - rev = "v${version}"; - hash = "sha256-DTiYyTZKYNprQSsAjHmpGdnS6dkXa3hSRGmIiLT/xr8="; + src = fetchCrate { + inherit pname version; + hash = "sha256-+xbHw1DpFmapjsFoUvxUqTok8TKMebMw3gYjO/rx/iU="; }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; + buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; - # Make openssl-sys use pkg-config. - OPENSSL_NO_VENDOR = 1; - - cargoHash = "sha256-4bhle98/zfw1uGNx+m1/4H9n63DnIezg/ZdV+zj0JNA="; + cargoHash = "sha256-iuLhDcii+wXDNUsUMo8lj4kfJve5RAz7FT5Pxs9yFPQ="; meta = with lib; { description = "Command line client of VRChat Package Manager, the main feature of VRChat Creator Companion (VCC)"; - homepage = "https://github.com/anatawa12/vrc-get"; + homepage = "https://github.com/vrc-get/vrc-get"; license = licenses.mit; maintainers = with maintainers; [ bddvlpr ]; mainProgram = "vrc-get";