From 9c03c3a5b97d9712aaab2823daea63580f60b975 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 27 Feb 2022 14:11:26 +0100 Subject: bump --- overlays/lego.nix | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-) (limited to 'overlays/lego.nix') diff --git a/overlays/lego.nix b/overlays/lego.nix index 2a6ef548..80e9bd4b 100644 --- a/overlays/lego.nix +++ b/overlays/lego.nix @@ -1,29 +1,10 @@ -prev: final: let - zerossl = prev.fetchpatch { - url = "https://patch-diff.githubusercontent.com/raw/go-acme/lego/pull/1501.patch"; - hash = "sha256-hLuWX607T8tcqljpBzEADViZd2FABkCgjNCLXMyWpuA="; - }; -in { - lego = prev.buildGoModule rec { - pname = "lego"; - version = "4.6.0"; - - src = prev.fetchFromGitHub { - owner = "go-acme"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-FisQS/qbl7f4aszc2Ft6nmuHNrDreOQdN0jrWMOvaAk="; - }; - patches = [zerossl]; - - vendorSha256 = "sha256-cLM4YGguQf7lO5PUPmd/at1Aqrp9m8zFG6GWqcduJmw="; - - doCheck = false; - - subPackages = [ "cmd/lego" ]; - - ldflags = [ - "-X main.version=${version}" - ]; +final: prev: { + lego = prev.lego.override { + buildGoModule = args: prev.buildGoModule (args // { + patches = (args.patches or []) ++ prev.lib.lists.singleton (prev.fetchpatch { + url = "https://patch-diff.githubusercontent.com/raw/go-acme/lego/pull/1501.patch"; + hash = "sha256-hLuWX607T8tcqljpBzEADViZd2FABkCgjNCLXMyWpuA="; + }); + }); }; } -- cgit v1.2.3