Unverified Commit f54f794a authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #219097 from r-ryantm/auto-update/gomplate

gomplate: 3.11.3 -> 3.11.4
parents fceb0dd7 075895f8
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "gomplate";
  version = "3.11.3";
  owner = "hairyhenderson";
  rev = "v${version}";
  version = "3.11.4";

  src = fetchFromGitHub {
    inherit owner rev;
    owner = "hairyhenderson";
    repo = pname;
    sha256 = "sha256-NvTwiGyBHhHiVHdWeXnJONNkHkrvsc1zmHPK8rSHaQw=";
    rev = "refs/tags/v${version}";
    hash = "sha256-3WTscK2nmjd7+cUKGaAi9i+C3HFpuxb7eRCn0fOHFV4=";
  };

  vendorSha256 = "sha256-BIcOErtlcnE70Mo6fjmA/btvSpw95RaKLqNWsgyJgpc=";
  vendorHash = "sha256-X3o00WATVlWoc1Axug5ErPtLDQ+BL3CtO/QyNtavIpg=";

  postPatch = ''
    # some tests require network access
@@ -32,13 +34,14 @@ buildGoModule rec {
  ldflags = [
    "-s"
    "-w"
    "-X github.com/${owner}/${pname}/v3/version.Version=${rev}"
    "-X github.com/${src.owner}/${pname}/v3/version.Version=${version}"
  ];

  meta = with lib; {
    description = "A flexible commandline tool for template rendering";
    homepage = "https://gomplate.ca/";
    maintainers = with maintainers; [ ris jlesquembre ];
    changelog = "https://github.com/hairyhenderson/gomplate/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ ris jlesquembre ];
  };
}