Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 12 additions & 18 deletions pkgs/by-name/ma/mani/package.nix
Original file line number Diff line number Diff line change
@@ -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=";
};

Expand All @@ -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 = ''
Expand All @@ -38,25 +37,20 @@ buildGoModule rec {
--zsh <($out/bin/mani completion zsh)

wrapProgram $out/bin/mani \
--prefix PATH : ${lib.makeBinPath [ git ]}
--prefix PATH : ${lib.makeBinPath [ gitMinimal ]}
'';

# 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; {
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 ];
};
}
})