summaryrefslogtreecommitdiff
path: root/overlays/lego.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/lego.nix')
-rw-r--r--overlays/lego.nix35
1 files changed, 8 insertions, 27 deletions
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 @@
1prev: final: let 1final: prev: {
2 zerossl = prev.fetchpatch { 2 lego = prev.lego.override {
3 url = "https://patch-diff.githubusercontent.com/raw/go-acme/lego/pull/1501.patch"; 3 buildGoModule = args: prev.buildGoModule (args // {
4 hash = "sha256-hLuWX607T8tcqljpBzEADViZd2FABkCgjNCLXMyWpuA="; 4 patches = (args.patches or []) ++ prev.lib.lists.singleton (prev.fetchpatch {
5 }; 5 url = "https://patch-diff.githubusercontent.com/raw/go-acme/lego/pull/1501.patch";
6in { 6 hash = "sha256-hLuWX607T8tcqljpBzEADViZd2FABkCgjNCLXMyWpuA=";
7 lego = prev.buildGoModule rec { 7 });
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} 10}