11{
2+ lib ,
3+ gitMinimal ,
24 buildGoModule ,
35 fetchFromGitHub ,
4- lib ,
56 installShellFiles ,
6- git ,
77 makeWrapper ,
88} :
99
10- buildGoModule rec {
10+ buildGoModule ( finalAttrs : {
1111 pname = "mani" ;
1212 version = "0.30.0" ;
1313
1414 src = fetchFromGitHub {
1515 owner = "alajmo" ;
1616 repo = "mani" ;
17- rev = "v${ version } " ;
17+ tag = "v${ finalAttrs . version } " ;
1818 sha256 = "sha256-LxW9LPK4cXIXhBWPhOYWLeV5PIf+o710SWX8JVpZhPI=" ;
1919 } ;
2020
@@ -27,8 +27,7 @@ buildGoModule rec {
2727
2828 ldflags = [
2929 "-s"
30- "-w"
31- "-X github.com/alajmo/mani/cmd.version=${ version } "
30+ "-X github.com/alajmo/mani/cmd.version=${ finalAttrs . version } "
3231 ] ;
3332
3433 postInstall = ''
@@ -38,25 +37,20 @@ buildGoModule rec {
3837 --zsh <($out/bin/mani completion zsh)
3938
4039 wrapProgram $out/bin/mani \
41- --prefix PATH : ${ lib . makeBinPath [ git ] }
40+ --prefix PATH : ${ lib . makeBinPath [ gitMinimal ] }
4241 '' ;
4342
4443 # Skip tests
4544 # The repo's test folder has a README.md with detailed information. I don't
4645 # know how to wrap the dependencies for these integration tests so skip for now.
4746 doCheck = false ;
4847
49- meta = with lib ; {
48+ meta = {
49+ changelog = "https://github.com/alajmo/mani/releases/tag/v${ finalAttrs . version } " ;
5050 description = "CLI tool to help you manage multiple repositories" ;
51+ homepage = "https://manicli.com" ;
52+ license = lib . licenses . mit ;
5153 mainProgram = "mani" ;
52- longDescription = ''
53- mani is a CLI tool that helps you manage multiple repositories. It's useful
54- when you are working with microservices, multi-project systems, many
55- libraries or just a bunch of repositories and want a central place for
56- pulling all repositories and running commands over them.
57- '' ;
58- homepage = "https://manicli.com/" ;
59- changelog = "https://github.com/alajmo/mani/releases/tag/v${ version } " ;
60- license = licenses . mit ;
54+ maintainers = with lib . maintainers ; [ phanirithvij ] ;
6155 } ;
62- }
56+ } )
0 commit comments