depot/third_party/nixpkgs/pkgs/applications/version-management/gitmux/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
816 B
Nix

{ fetchFromGitHub, buildGoModule, lib, testers, gitmux, git }:
buildGoModule rec {
pname = "gitmux";
version = "0.11.2";
src = fetchFromGitHub {
owner = "arl";
repo = pname;
rev = "v${version}";
sha256 = "sha256-0Cw98hTg8qPu7BUTBDEgFBOpoCxstPW9HeNXQUUjgGA=";
};
vendorHash = "sha256-PHY020MIuLlC1LqNGyBJRNd7J+SzoHbNMPAil7CKP/M=";
nativeCheckInputs = [ git ];
doCheck = true;
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 ];
mainProgram = "gitmux";
};
}