nixpkgs/pkgs/tools/misc/vrc-get/default.nix
Peder Bergebakken Sundt 27e69cc008
Merge pull request #256450 from bddvlpr/update/vrc-get
vrc-get: 1.1.3 -> 1.3.0
2023-12-02 16:30:10 +01:00

36 lines
972 B
Nix

{ fetchFromGitHub, lib, rustPlatform, pkg-config, openssl, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "vrc-get";
version = "1.3.0";
src = fetchFromGitHub {
owner = "anatawa12";
repo = pname;
rev = "v${version}";
hash = "sha256-FCLIc5c+50qGpBEbJ4bUSNAfQVdpeswNwiWrVcO91zI=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
# Make openssl-sys use pkg-config.
OPENSSL_NO_VENDOR = 1;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"async_zip-0.0.15" = "sha256-UXBVZy3nf20MUh9jQdYeS5ygrZfeRWtiNRtiyMvkdSs=";
};
};
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 ];
mainProgram = "vrc-get";
};
}