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