2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-01-23 16:04:54 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "renderizer";
|
2021-03-10 23:16:31 +00:00
|
|
|
version = "2.0.12";
|
2020-01-23 16:04:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gomatic";
|
|
|
|
repo = pname;
|
2021-03-10 23:16:31 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-Ji+wTTXLp17EYRIjUiVgd33ZeBdT8K2O8R2Ejq2Ll5I=";
|
2020-01-23 16:04:54 +00:00
|
|
|
};
|
|
|
|
|
2021-03-10 23:16:31 +00:00
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=-s -w -X main.version=${version} -X main.commitHash=${src.rev} -X main.date=19700101T000000"
|
|
|
|
];
|
2020-01-23 16:04:54 +00:00
|
|
|
|
2021-03-10 23:16:31 +00:00
|
|
|
vendorSha256 = null;
|
2020-08-04 01:26:27 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-23 16:04:54 +00:00
|
|
|
description = "CLI to render Go template text files";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ yurrriq ];
|
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|