depot/third_party/nixpkgs/pkgs/applications/version-management/gitmux/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

35 lines
884 B
Nix

{ fetchFromGitHub, buildGoModule, lib, testers, gitmux }:
buildGoModule rec {
pname = "gitmux";
version = "0.10.3";
src = fetchFromGitHub {
owner = "arl";
repo = pname;
rev = "v${version}";
sha256 = "sha256-BvjBEhu6696DkT4GEg2gYTovZEnRosnBD3kzym536e0=";
};
vendorHash = "sha256-PHY020MIuLlC1LqNGyBJRNd7J+SzoHbNMPAil7CKP/M=";
# 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 ];
};
}