diff --git a/pkgs/by-name/ma/mani/package.nix b/pkgs/by-name/ma/mani/package.nix index 395328e94834..b3f663dff5c7 100644 --- a/pkgs/by-name/ma/mani/package.nix +++ b/pkgs/by-name/ma/mani/package.nix @@ -1,20 +1,20 @@ { + lib, + gitMinimal, buildGoModule, fetchFromGitHub, - lib, installShellFiles, - git, makeWrapper, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "mani"; version = "0.30.0"; src = fetchFromGitHub { owner = "alajmo"; repo = "mani"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; sha256 = "sha256-LxW9LPK4cXIXhBWPhOYWLeV5PIf+o710SWX8JVpZhPI="; }; @@ -27,8 +27,7 @@ buildGoModule rec { ldflags = [ "-s" - "-w" - "-X github.com/alajmo/mani/cmd.version=${version}" + "-X github.com/alajmo/mani/cmd.version=${finalAttrs.version}" ]; postInstall = '' @@ -38,7 +37,7 @@ buildGoModule rec { --zsh <($out/bin/mani completion zsh) wrapProgram $out/bin/mani \ - --prefix PATH : ${lib.makeBinPath [ git ]} + --prefix PATH : ${lib.makeBinPath [ gitMinimal ]} ''; # Skip tests @@ -46,17 +45,12 @@ buildGoModule rec { # know how to wrap the dependencies for these integration tests so skip for now. doCheck = false; - meta = with lib; { + 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"; - 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; + maintainers = with lib.maintainers; [ phanirithvij ]; }; -} +})