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