summary refs log tree commit diff
path: root/pkgs/tools/misc/git-town/default.nix
blob: 5438f71930daa6f24c21bc220076ccab27d15efd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, buildGoPackage, fetchFromGitHub }: 

  buildGoPackage rec {
    pname = "git-town";
    version = "7.2.0";

    goPackagePath = "github.com/Originate/git-town";

    src = fetchFromGitHub {
      owner = "Originate";
      repo = "git-town";
      rev = "v${version}";
      sha256 = "0hr0c6iya34lanfhsg9kj03l4ajalcfxkbn4bgwh0749smhi6mrj";
    };

    buildFlagsArray = [ "-ldflags=-X github.com/Originate/git-town/src/cmd.version=v${version} -X github.com/Originate/git-town/src/cmd.buildDate=nix" ];

    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;
    };
  }