nixpkgs/pkgs/applications/version-management/git-and-tools/gitty/default.nix

26 lines
683 B
Nix
Raw Normal View History

2021-09-06 22:00:48 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "gitty";
2022-01-12 21:10:28 +00:00
version = "0.6.0";
2021-09-06 22:00:48 +00:00
src = fetchFromGitHub {
owner = "muesli";
repo = "gitty";
rev = "v${version}";
2022-01-12 21:10:28 +00:00
sha256 = "sha256-gjiFaBM6PP937l5EQIeB27kGuZCT7cmVHm0UwuytqfE=";
2021-09-06 22:00:48 +00:00
};
2022-01-12 21:10:28 +00:00
vendorSha256 = "sha256-CytlkfOzrmCRjj4tGoDUbqdim5DWElMYo1Tosw7Dhmg=";
2021-09-06 22:00:48 +00:00
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
meta = with lib; {
homepage = "https://github.com/muesli/gitty/";
description = "Contextual information about your git projects, right on the command-line";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ izorkin ];
};
}