2024-01-25 14:12:00 +00:00
|
|
|
{ fetchFromGitHub, lib, rustPlatform, pkg-config, openssl, stdenv, Security, SystemConfiguration }:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "vrc-get";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.5.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anatawa12";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-DTiYyTZKYNprQSsAjHmpGdnS6dkXa3hSRGmIiLT/xr8=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
# Make openssl-sys use pkg-config.
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
cargoHash = "sha256-4bhle98/zfw1uGNx+m1/4H9n63DnIezg/ZdV+zj0JNA=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bddvlpr ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "vrc-get";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|