packwiz: init

This commit is contained in:
Infinidoge 2022-05-25 15:23:38 -04:00
parent 355e97e1fc
commit 9687b5e62e
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "packwiz";
version = "unstable-2022-5-25";
src = fetchFromGitHub {
owner = "packwiz";
repo = "packwiz";
rev = "e71b63ea98283c8c1f0e03ee51ae40f452f22a61";
sha256 = "sha256-XwGacEVfQAduDCSMQFRw7Xnx4bND2zaV7l27B+2u5xg=";
};
vendorSha256 = "sha256-M9u7N4IrL0B4pPRQwQG5TlMaGT++w3ZKHZ0RdxEHPKk=";
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";
};
}

View file

@ -1356,6 +1356,10 @@ with pkgs;
python = python3;
};
packwiz = callPackage ../tools/games/minecraft/packwiz {
buildGoModule = buildGo118Module;
};
pcem = callPackage ../applications/emulators/pcem { };
pcsx2 = callPackage ../applications/emulators/pcsx2 {