nixpkgs/pkgs/tools/misc/vrc-get/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
972 B
Nix
Raw Normal View History

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