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.

31 lines
922 B
Nix
Raw Normal View History

2024-01-23 20:23:32 +00:00
{ fetchFromGitHub, lib, rustPlatform, pkg-config, openssl, stdenv, Security, SystemConfiguration }:
2023-07-11 13:16:37 +00:00
rustPlatform.buildRustPackage rec {
pname = "vrc-get";
2024-01-23 20:23:32 +00:00
version = "1.5.2";
2023-07-11 13:16:37 +00:00
src = fetchFromGitHub {
owner = "anatawa12";
repo = pname;
rev = "v${version}";
2024-01-23 20:23:32 +00:00
hash = "sha256-DTiYyTZKYNprQSsAjHmpGdnS6dkXa3hSRGmIiLT/xr8=";
2023-07-11 13:16:37 +00:00
};
nativeBuildInputs = [ pkg-config ];
2024-01-23 20:23:32 +00:00
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
2023-07-11 13:16:37 +00:00
# Make openssl-sys use pkg-config.
OPENSSL_NO_VENDOR = 1;
2024-01-23 20:23:32 +00:00
cargoHash = "sha256-4bhle98/zfw1uGNx+m1/4H9n63DnIezg/ZdV+zj0JNA=";
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
};
}