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