mani: refactor and add self as maintainer

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij
2025-03-19 19:11:21 +05:30
parent 4edfeafac4
commit 759aed6703
+12 -18
View File
@@ -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 ];
};
}
})