Testing_packwiz/nix/packwiz.nix

41 lines
1 KiB
Nix
Raw Normal View History

2025-01-15 19:35:50 +00:00
{
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
unstableGitUpdater,
}:
buildGoModule {
pname = "packwiz";
version = "0-unstable-2024-10-15";
src = fetchFromGitHub {
owner = "Silver-Golden";
2025-01-15 19:35:50 +00:00
repo = "packwiz";
rev = "453264019e54eae69f495078b0f3fa073f071e73";
sha256 = "sha256-x6Z8MLaacZFlRYOVkTU+ffYtCJu4FAB3I2W/uQITwns=";
2025-01-15 19:35:50 +00:00
};
passthru.updateScript = unstableGitUpdater { };
vendorHash = "sha256-krdrLQHM///dtdlfEhvSUDV2QljvxFc2ouMVQVhN7A0=";
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installShellCompletion --cmd packwiz \
--bash <($out/bin/packwiz completion bash) \
--fish <($out/bin/packwiz completion fish) \
--zsh <($out/bin/packwiz completion zsh)
'';
meta = with lib; {
description = "Command line tool for editing and distributing Minecraft modpacks, using a git-friendly TOML format";
homepage = "https://packwiz.infra.link/";
license = licenses.mit;
maintainers = with maintainers; [ infinidoge ];
mainProgram = "packwiz";
};
}