gitmux: init at 0.7.10

This commit is contained in:
nialov 2022-12-05 15:27:42 +02:00
parent 6e51c97f1c
commit d4f0deff85
No known key found for this signature in database
GPG Key ID: A0FE92FDF934FBBA
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ fetchFromGitHub, buildGoModule, lib, testers, gitmux }:
buildGoModule rec {
pname = "gitmux";
version = "0.7.10";
src = fetchFromGitHub {
owner = "arl";
repo = pname;
rev = "v${version}";
sha256 = "sha256-kBrE3jU7N8+kdT4tqC6gIGPz3soagStzLy5Iz4vNFI0=";
};
vendorSha256 = "sha256-V6xe+19NiHYIIN4rgkyzdP4eGnRXo0aW4fVbdlIcvig=";
# GitHub source does contain a regression test for the module
# but it requires networking as it git clones a repo from github
doCheck = false;
ldflags = [ "-X main.version=${version}" ];
passthru.tests.version = testers.testVersion {
package = gitmux;
command = "gitmux -V";
};
subPackages = [ "." ];
meta = with lib; {
description = "Git in your tmux status bar";
homepage = "https://github.com/arl/gitmux";
license = licenses.mit;
maintainers = with maintainers; [ nialov ];
};
}

View File

@ -1827,6 +1827,8 @@ with pkgs;
gitls = callPackage ../applications/version-management/git-and-tools/gitls { };
gitmux = callPackage ../applications/version-management/git-and-tools/gitmux { };
gitnuro = callPackage ../applications/version-management/git-and-tools/gitnuro { };
gitsign = callPackage ../applications/version-management/git-and-tools/gitsign { };