nixpkgs/pkgs/tools/misc/git-town/default.nix

26 lines
716 B
Nix
Raw Normal View History

2020-04-02 07:43:26 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
2020-04-02 07:43:26 +01:00
buildGoPackage rec {
pname = "git-town";
version = "7.3.0";
2020-04-02 07:43:26 +01:00
goPackagePath = "github.com/Originate/git-town";
2020-04-02 07:43:26 +01:00
src = fetchFromGitHub {
owner = "Originate";
repo = "git-town";
rev = "v${version}";
sha256 = "166g9i79hqga8k5wvs0b84q6rqniizzsd39v37s9w16axgdrm6nb";
};
2020-04-02 07:43:26 +01:00
buildFlagsArray = [ "-ldflags=-X github.com/Originate/git-town/src/cmd.version=v${version} -X github.com/Originate/git-town/src/cmd.buildDate=nix" ];
2020-04-02 07:43:26 +01:00
meta = with stdenv.lib; {
description = "Generic, high-level git support for git-flow workflows";
homepage = "http://www.git-town.com/";
maintainers = [ maintainers.allonsy ];
license = licenses.mit;
};
}