diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/vrc-get')
-rw-r--r-- | nixpkgs/pkgs/tools/misc/vrc-get/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/misc/vrc-get/default.nix b/nixpkgs/pkgs/tools/misc/vrc-get/default.nix new file mode 100644 index 000000000000..c0099d822e40 --- /dev/null +++ b/nixpkgs/pkgs/tools/misc/vrc-get/default.nix @@ -0,0 +1,30 @@ +{ fetchFromGitHub, lib, rustPlatform, pkg-config, openssl, stdenv, Security }: + +rustPlatform.buildRustPackage rec { + pname = "vrc-get"; + version = "1.1.3"; + + src = fetchFromGitHub { + owner = "anatawa12"; + repo = pname; + rev = "v${version}"; + hash = "sha256-CJBwW2QsLNLyNubawBPD+Cy74JrrdSUHe7JBSdbMnjY="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ]; + + # Make openssl-sys use pkg-config. + OPENSSL_NO_VENDOR = 1; + + cargoHash = "sha256-PnNo+MmBo/Ke7pL6KwRKXz3gycJmbYefTRMWOvlCQaQ="; + + 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 ]; + }; +} |