summary refs log tree commit diff
path: root/pkgs/tools/text/gucci/default.nix
blob: 1667f2e45b543312b450140697837c6616d10210 (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
26
27
28
29
30
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "gucci";
  version = "0.1.0";

  goPackagePath = "github.com/noqcks/gucci";

  src = fetchFromGitHub {
    owner = "noqcks";
    repo = "gucci";
    rev = version;
    sha256 = "0ksrmzb3iggc7gm51fl0jbb15d0gmpclslpkq2sl2xjzk29pkllq";
  };

  goDeps = ./deps.nix;

  buildFlagsArray = ''
    -ldflags=-X main.AppVersion=${version}
  '';

  meta = with stdenv.lib; {
    description = "A simple CLI templating tool written in golang";
    homepage = "https://github.com/noqcks/gucci";
    license = licenses.mit;
    maintainers = [ maintainers.braydenjw ];
    platforms = platforms.unix;
  };
}