3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/mani/default.nix
R. RyanTM 4b46a593ef
mani: 0.10.0 -> 0.11.1
* mani: 0.10.0 -> 0.11.1 (#154630)

* mani: set proper version

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-01-12 21:13:39 +01:00

48 lines
1.5 KiB
Nix

{ buildGoModule, fetchFromGitHub, lib, installShellFiles, git, makeWrapper}:
buildGoModule rec {
pname = "mani";
version = "0.11.1";
src = fetchFromGitHub {
owner = "alajmo";
repo = "mani";
rev = "v${version}";
sha256 = "sha256-9SvjgXQADDNyv8O9KKE3gKXu67Nz5LepayUXSbWwEoY=";
};
vendorSha256 = "sha256-cuAZN08A2nND9d4c9w+kTqiMB9yaJ49Q0aT/V0J9FRw=";
nativeBuildInputs = [ installShellFiles makeWrapper ];
ldflags = [ "-s" "-w" "-X github.com/alajmo/mani/cmd.version=${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 [ git ]}
'';
# 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 = with lib; {
description = "CLI tool to help you manage multiple repositories";
longDescription = ''
mani is a CLI tool that helps you manage multiple repositories. It's useful
when you are working with microservices, multi-project systems, many
libraries or just a bunch of repositories and want a central place for
pulling all repositories and running commands over them.
'';
homepage = "https://manicli.com/";
changelog = "https://github.com/alajmo/mani/releases/tag/v${version}";
license = licenses.mit;
};
}