2022-12-17 10:02:37 +00:00
|
|
|
{ fetchFromGitHub, buildGoModule, lib, testers, gitmux }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gitmux";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.10.4";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-toEKWkyCmeoG6eVK19RKipCqHM7OhZrkWRHNAclFgoI=";
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gitmux";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
}
|