Files
nixpkgs/pkgs/by-name/ma/mani/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.4 KiB
Nix

{
lib,
gitMinimal,
buildGoModule,
fetchFromGitHub,
installShellFiles,
makeWrapper,
}:
buildGoModule (finalAttrs: {
pname = "mani";
version = "0.31.0";
src = fetchFromGitHub {
owner = "alajmo";
repo = "mani";
tag = "v${finalAttrs.version}";
sha256 = "sha256-sV3yxtLlOTtCCj0kNstJ07cvI+B+rL4QNPQKGo98V6A=";
};
vendorHash = "sha256-PnQocOtnIBl0+5mDG7irEqGjAnzJ9Wk/fA4NW/nU+zw=";
nativeBuildInputs = [
installShellFiles
makeWrapper
];
ldflags = [
"-s"
"-X github.com/alajmo/mani/cmd.version=${finalAttrs.version}"
];
postInstall = ''
installShellCompletion --cmd mani \
--bash <($out/bin/mani completion bash) \
--fish <($out/bin/mani completion fish) \
--zsh <($out/bin/mani completion zsh)
wrapProgram $out/bin/mani \
--prefix PATH : ${lib.makeBinPath [ gitMinimal ]}
'';
# Skip tests
# The repo's test folder has a README.md with detailed information. I don't
# know how to wrap the dependencies for these integration tests so skip for now.
doCheck = false;
meta = {
changelog = "https://github.com/alajmo/mani/releases/tag/v${finalAttrs.version}";
description = "CLI tool to help you manage multiple repositories";
homepage = "https://manicli.com";
license = lib.licenses.mit;
mainProgram = "mani";
maintainers = with lib.maintainers; [ phanirithvij ];
};
})