Files
nixpkgs/pkgs/by-name/vr/vrc-get/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.3 KiB
Nix

{
fetchCrate,
installShellFiles,
lib,
rustPlatform,
pkg-config,
stdenv,
buildPackages,
}:
rustPlatform.buildRustPackage rec {
pname = "vrc-get";
version = "1.9.1";
src = fetchCrate {
inherit pname version;
hash = "sha256-b/rlHfm+AfrluCqoTyBqx86xVaNV3QBGollk5HyD4xk=";
};
nativeBuildInputs = [
installShellFiles
pkg-config
];
cargoHash = "sha256-TrmWZBEh2+eKqHu3hwrd2pIQggG3yFszxHQVuLHbs3M=";
# Execute the resulting binary to generate shell completions, using emulation if necessary when cross-compiling.
# If no emulator is available, then give up on generating shell completions
postInstall =
let
vrc-get = "${stdenv.hostPlatform.emulator buildPackages} $out/bin/vrc-get";
in
lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) ''
installShellCompletion --cmd vrc-get \
--bash <(${vrc-get} completion bash) \
--fish <(${vrc-get} completion fish) \
--zsh <(${vrc-get} completion zsh)
'';
meta = with lib; {
description = "Command line client of VRChat Package Manager, the main feature of VRChat Creator Companion (VCC)";
homepage = "https://github.com/vrc-get/vrc-get";
license = licenses.mit;
maintainers = with maintainers; [ bddvlpr ];
mainProgram = "vrc-get";
};
}