2022-12-17 10:02:37 +00:00
|
|
|
{ fetchFromGitHub, buildGoModule, lib, testers, gitmux }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gitmux";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.10.3";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-BvjBEhu6696DkT4GEg2gYTovZEnRosnBD3kzym536e0=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-PHY020MIuLlC1LqNGyBJRNd7J+SzoHbNMPAil7CKP/M=";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|