mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
d994dabace
We do not use a "plugin system" for Git addons anymore, and therefore this directory is no longer useful. Indeed that directory is way more confusing, given that it includes more than mere Git addons, going from Bitbucket server command-line tools to complete rewrites of Git in exotic programming languages. Also, without this directory, the mental load of decision-making reduces a lot. When anyone is interested in including a new git-related tool, just put it into pkgs/applications/version-management, without apologies.
36 lines
886 B
Nix
36 lines
886 B
Nix
{ fetchFromGitHub, buildGoModule, lib, testers, gitmux }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitmux";
|
|
version = "0.7.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "arl";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kBrE3jU7N8+kdT4tqC6gIGPz3soagStzLy5Iz4vNFI0=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-V6xe+19NiHYIIN4rgkyzdP4eGnRXo0aW4fVbdlIcvig=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|