2024-06-20 14:57:18 +00:00
|
|
|
{ fetchFromGitHub, buildGoModule, lib, testers, gitmux, git }:
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gitmux";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.11.2";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
sha256 = "sha256-0Cw98hTg8qPu7BUTBDEgFBOpoCxstPW9HeNXQUUjgGA=";
|
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
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
doCheck = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|