2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "lego";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "3.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "go-acme";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-02 18:00:15 +00:00
|
|
|
sha256 = "03824c5nfii7cc6mr1hdkyd4jjy8vpn08lnj4c6pc61s3i6gacc6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
vendorSha256 = "14453iiya6algkympyvwm03qgjcwk79z8bbrij7qhnp52qfrbmrp";
|
2020-04-24 23:36:52 +00:00
|
|
|
subPackages = [ "cmd/lego" ];
|
|
|
|
|
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Let's Encrypt client and ACME library written in Go";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://go-acme.github.io/lego/";
|
2020-05-03 17:38:23 +00:00
|
|
|
maintainers = teams.acme.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|