2020-03-27 08:33:21 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2018-02-11 08:08:16 +01:00
|
|
|
|
2019-08-22 20:50:31 +02:00
|
|
|
buildGoModule rec {
|
2019-06-05 01:47:16 +02:00
|
|
|
pname = "lego";
|
2020-03-16 18:12:10 +01:00
|
|
|
version = "3.5.0";
|
2018-02-11 08:08:16 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-06-05 01:47:16 +02:00
|
|
|
owner = "go-acme";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-03-16 18:12:10 +01:00
|
|
|
sha256 = "08mh2q426gmhcaz578lw08jbxfqb7qm37cd00ap937dymi1zs9qw";
|
2018-02-11 08:08:16 +01:00
|
|
|
};
|
|
|
|
|
2020-03-16 18:12:10 +01:00
|
|
|
modSha256 = "10n8pcbmzlnk63gzsjb1xnmjwxfhxsqx8ffpcbwdzq9fc5yvjiii";
|
2019-11-27 22:12:08 +01:00
|
|
|
subPackages = [ "cmd/lego" ];
|
2018-02-11 08:08:16 +01:00
|
|
|
|
2020-01-29 22:45:00 +01:00
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2018-02-11 08:08:16 +01:00
|
|
|
description = "Let's Encrypt client and ACME library written in Go";
|
|
|
|
license = licenses.mit;
|
2019-06-05 01:47:16 +02:00
|
|
|
homepage = "https://go-acme.github.io/lego/";
|
2020-04-20 02:36:40 +02:00
|
|
|
maintainers = teams.acme.members;
|
2018-02-11 08:08:16 +01:00
|
|
|
};
|
|
|
|
}
|