blob: 19b1d673962a3fab59cfb39d330e14501118c498 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ buildGoModule, fetchFromGitHub, lib, installShellFiles, git, makeWrapper}:
buildGoModule rec {
pname = "mani";
version = "0.25.0";
src = fetchFromGitHub {
owner = "alajmo";
repo = "mani";
rev = "v${version}";
sha256 = "sha256-TqxoU2g4ZegJGHrnNO+ivPu209NDFcLnxpHGj8pOA4E=";
};
vendorHash = "sha256-mFan09oJ+BPVJHAxoROj282WJ+4e7TD0ZqeQH1kDabQ=";
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;
};
}
|