feat: use local packwiz package
This commit is contained in:
parent
e6905cb642
commit
1bc7f5b92d
3 changed files with 45 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
# DOnt add teh IDE's
|
||||
/.idea
|
||||
|
||||
# dont add flake stuff
|
||||
# dont add nix stuff
|
||||
flake.*
|
||||
/nix
|
||||
|
||||
*.md
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
};
|
||||
|
||||
nixConfig = {
|
||||
bash-prompt-suffix = "[Skynet Dev] ";
|
||||
extra-substituters = "https://nix-cache.skynet.ie/skynet-cache";
|
||||
extra-trusted-public-keys = "skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo=";
|
||||
};
|
||||
|
@ -20,7 +21,7 @@
|
|||
system: let
|
||||
pkgs = (import nixpkgs) {inherit system;};
|
||||
packages = with pkgs; [
|
||||
packwiz
|
||||
(pkgs.callPackage ./nix/packwiz.nix {})
|
||||
];
|
||||
in rec {
|
||||
|
||||
|
|
41
nix/packwiz.nix
Normal file
41
nix/packwiz.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
buildGoModule {
|
||||
pname = "packwiz";
|
||||
version = "0-unstable-2024-10-15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "packwiz";
|
||||
repo = "packwiz";
|
||||
rev = "0626c00149a8d9a5e9f76e5640e7b8b95c064350";
|
||||
sha256 = "sha256-eAGfLUcyjDR2oJjLK3+DiuICTqoOcIwO5wL350w6vGw=";
|
||||
};
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue