depot/third_party/nixpkgs/pkgs/tools/games/minecraft/packwiz/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

38 lines
989 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "packwiz";
version = "unstable-2022-10-29";
src = fetchFromGitHub {
owner = "packwiz";
repo = "packwiz";
rev = "f00dc9844ffdd6ee5c0526a79b0084429e9cb130";
sha256 = "sha256-YpihFWdcKfHJLEs+jHzHH7G+m/E8i5y2yp7IubObNhY=";
};
vendorSha256 = "sha256-09S8RFdCvtE50EICLIKCTnTjG/0XsGf+yq9SNObKmRA=";
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";
};
}