From c30a9fd9460edbc8a0f3e8b91dca05e4a13d25ad Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 10 Mar 2021 17:16:31 -0600 Subject: [PATCH] renderizer: 2.0.9 -> 2.0.12 Also enable tests, and fix the version output. --- pkgs/development/tools/renderizer/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/renderizer/default.nix b/pkgs/development/tools/renderizer/default.nix index 22bf5fbe904a..ccf1d4a37d6c 100644 --- a/pkgs/development/tools/renderizer/default.nix +++ b/pkgs/development/tools/renderizer/default.nix @@ -2,18 +2,20 @@ buildGoModule rec { pname = "renderizer"; - version = "2.0.9"; + version = "2.0.12"; src = fetchFromGitHub { owner = "gomatic"; repo = pname; - rev = version; - sha256 = "1bip12pcn8bqgph7vd7bzzadwbyqh80fx7gqciv9fchycwsj04rf"; + rev = "v${version}"; + sha256 = "sha256-Ji+wTTXLp17EYRIjUiVgd33ZeBdT8K2O8R2Ejq2Ll5I="; }; - vendorSha256 = "13z357ww4j5bmmy8ag6d6gd5b2dib8kby73q8317pqnqzaxrrbcj"; + buildFlagsArray = [ + "-ldflags=-s -w -X main.version=${version} -X main.commitHash=${src.rev} -X main.date=19700101T000000" + ]; - doCheck = false; + vendorSha256 = null; meta = with lib; { description = "CLI to render Go template text files";