summary refs log tree commit diff
path: root/pkgs/development/tools/renderizer/default.nix
blob: ccf1d4a37d6c7695b2ab23aaaa976fd25e2a352f (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
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "renderizer";
  version = "2.0.12";

  src = fetchFromGitHub {
    owner = "gomatic";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-Ji+wTTXLp17EYRIjUiVgd33ZeBdT8K2O8R2Ejq2Ll5I=";
  };

  buildFlagsArray = [
    "-ldflags=-s -w -X main.version=${version} -X main.commitHash=${src.rev} -X main.date=19700101T000000"
  ];

  vendorSha256 = null;

  meta = with lib; {
    description = "CLI to render Go template text files";
    inherit (src.meta) homepage;
    license = licenses.gpl3;
    maintainers = with maintainers; [ yurrriq ];
  };
}