diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-26 16:27:33 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-26 16:27:33 +0100 |
commit | 74e5ee1cf73fe4f86b1b467b5f7a8c7f998aa0f8 (patch) | |
tree | dc13314dcbeacc698411dbd17b36b84b5b4a34f3 | |
parent | 05809c0a2ef4dc4f94d59163cbbd52fd1de7a7a1 (diff) | |
download | nixos-74e5ee1cf73fe4f86b1b467b5f7a8c7f998aa0f8.tar nixos-74e5ee1cf73fe4f86b1b467b5f7a8c7f998aa0f8.tar.gz nixos-74e5ee1cf73fe4f86b1b467b5f7a8c7f998aa0f8.tar.bz2 nixos-74e5ee1cf73fe4f86b1b467b5f7a8c7f998aa0f8.tar.xz nixos-74e5ee1cf73fe4f86b1b467b5f7a8c7f998aa0f8.zip |
...
-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 | } |