2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-01-23 16:04:54 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "renderizer";
|
2021-08-17 18:40:15 +00:00
|
|
|
version = "2.0.13";
|
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}";
|
2021-08-17 18:40:15 +00:00
|
|
|
sha256 = "sha256-jl98LuEsGN40L9IfybJhLnbzoYP/XpwFVQnjrlmDL9A=";
|
2020-01-23 16:04:54 +00:00
|
|
|
};
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X main.version=${version}" "-X main.commitHash=${src.rev}" "-X main.date=19700101T000000"
|
2021-03-10 23:16:31 +00:00
|
|
|
];
|
2020-01-23 16:04:54 +00:00
|
|
|
|
2023-09-21 17:11:11 +00:00
|
|
|
vendorHash = null;
|
2020-08-04 00:26:27 +00: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;
|
2023-10-31 17:14:28 +00:00
|
|
|
maintainers = [];
|
2020-01-23 16:04:54 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|