3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/renderizer/default.nix

27 lines
622 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-01-23 16:04:54 +00:00
buildGoModule rec {
pname = "renderizer";
2021-08-17 19:40:15 +01:00
version = "2.0.13";
2020-01-23 16:04:54 +00:00
src = fetchFromGitHub {
owner = "gomatic";
repo = pname;
rev = "v${version}";
2021-08-17 19:40:15 +01:00
sha256 = "sha256-jl98LuEsGN40L9IfybJhLnbzoYP/XpwFVQnjrlmDL9A=";
2020-01-23 16:04:54 +00:00
};
2021-08-26 07:45:51 +01:00
ldflags = [
"-s" "-w" "-X main.version=${version}" "-X main.commitHash=${src.rev}" "-X main.date=19700101T000000"
];
2020-01-23 16:04:54 +00:00
vendorSha256 = null;
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 ];
};
}