nixpkgs/pkgs/tools/games/minecraft/packwiz/default.nix
Weijia Wang 9e3c413e88
Merge pull request #255181 from Anomalocaridid/packwiz
packwiz: unstable-2023-02-13 -> unstable-2023-08-28
2023-09-15 10:38:24 +02:00

39 lines
983 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule {
pname = "packwiz";
version = "unstable-2023-08-28";
src = fetchFromGitHub {
owner = "packwiz";
repo = "packwiz";
rev = "b451a9b034fd414a2a8d9b306bb8e29fb25ad245";
sha256 = "sha256-Ly5z+h11yyhIgzhohjk2g8hQNEPkxxag9m7XYmTMfEQ=";
};
vendorHash = "sha256-yL5pWbVqf6mEpgYsItLnv8nwSmoMP+SE0rX/s7u2vCg=";
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 = "A 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";
};
}