nixpkgs/pkgs/applications/version-management/gitmux/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
912 B
Nix
Raw Normal View History

2022-12-05 13:27:42 +00:00
{ fetchFromGitHub, buildGoModule, lib, testers, gitmux }:
buildGoModule rec {
pname = "gitmux";
2024-06-09 13:13:08 +00:00
version = "0.11.2";
2022-12-05 13:27:42 +00:00
src = fetchFromGitHub {
owner = "arl";
repo = pname;
rev = "v${version}";
2024-06-09 13:13:08 +00:00
sha256 = "sha256-0Cw98hTg8qPu7BUTBDEgFBOpoCxstPW9HeNXQUUjgGA=";
2022-12-05 13:27:42 +00:00
};
2023-09-06 03:20:38 +00:00
vendorHash = "sha256-PHY020MIuLlC1LqNGyBJRNd7J+SzoHbNMPAil7CKP/M=";
2022-12-05 13:27:42 +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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "gitmux";
2022-12-05 13:27:42 +00:00
};
}