diff options
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/lego.nix | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/overlays/lego.nix b/overlays/lego.nix index 0c2811df..2a6ef548 100644 --- a/overlays/lego.nix +++ b/overlays/lego.nix | |||
@@ -1,9 +1,29 @@ | |||
1 | prev: final: let | 1 | prev: final: let |
2 | zerossl = prev.fetchpatch { | 2 | zerossl = prev.fetchpatch { |
3 | url = "https://patch-diff.githubusercontent.com/raw/go-acme/lego/pull/1501.patch"; | 3 | url = "https://patch-diff.githubusercontent.com/raw/go-acme/lego/pull/1501.patch"; |
4 | hash = "sha256-hLuWX607T8tcqljpBzEADViZd2FABkCgjNCLXMyWpuA="; | ||
4 | }; | 5 | }; |
5 | in { | 6 | in { |
6 | lego = prev.lego.overrideDerivation (oldAttrs: { | 7 | lego = prev.buildGoModule rec { |
7 | patches = oldAttrs.patches ++ [zerossl]; | 8 | pname = "lego"; |
8 | }); | 9 | version = "4.6.0"; |
10 | |||
11 | src = prev.fetchFromGitHub { | ||
12 | owner = "go-acme"; | ||
13 | repo = pname; | ||
14 | rev = "v${version}"; | ||
15 | sha256 = "sha256-FisQS/qbl7f4aszc2Ft6nmuHNrDreOQdN0jrWMOvaAk="; | ||
16 | }; | ||
17 | patches = [zerossl]; | ||
18 | |||
19 | vendorSha256 = "sha256-cLM4YGguQf7lO5PUPmd/at1Aqrp9m8zFG6GWqcduJmw="; | ||
20 | |||
21 | doCheck = false; | ||
22 | |||
23 | subPackages = [ "cmd/lego" ]; | ||
24 | |||
25 | ldflags = [ | ||
26 | "-X main.version=${version}" | ||
27 | ]; | ||
28 | }; | ||
9 | } | 29 | } |