base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / pa / packwiz / package.nix
blob08055ee4f335b3643f3ace01c0b0c403f04c703b
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , installShellFiles
5 , unstableGitUpdater
6 }:
8 buildGoModule {
9   pname = "packwiz";
10   version = "0-unstable-2024-05-27";
12   src = fetchFromGitHub {
13     owner = "packwiz";
14     repo = "packwiz";
15     rev = "7b4be47578151c36e784306b36d251ec2590e50c";
16     sha256 = "sha256-XBp8Xv55R8rhhsQiWnOPH8c3fCpV/yq41ozJDcGdWfs=";
17   };
18   passthru.updateScript = unstableGitUpdater { };
20   vendorHash = "sha256-yL5pWbVqf6mEpgYsItLnv8nwSmoMP+SE0rX/s7u2vCg=";
22   nativeBuildInputs = [
23     installShellFiles
24   ];
26   postInstall = ''
27     installShellCompletion --cmd packwiz \
28       --bash <($out/bin/packwiz completion bash) \
29       --fish <($out/bin/packwiz completion fish) \
30       --zsh <($out/bin/packwiz completion zsh)
31   '';
33   meta = with lib; {
34     description = "Command line tool for editing and distributing Minecraft modpacks, using a git-friendly TOML format";
35     homepage = "https://packwiz.infra.link/";
36     license = licenses.mit;
37     maintainers = with maintainers; [ infinidoge ];
38     mainProgram = "packwiz";
39   };