2020-08-24 06:22:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
2018-02-11 07:08:16 +00:00
|
|
|
|
2019-08-22 18:50:31 +00:00
|
|
|
buildGoModule rec {
|
2019-06-04 23:47:16 +00:00
|
|
|
pname = "lego";
|
2021-01-29 05:23:03 +00:00
|
|
|
version = "4.2.0";
|
2018-02-11 07:08:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-06-04 23:47:16 +00:00
|
|
|
owner = "go-acme";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-29 05:23:03 +00:00
|
|
|
sha256 = "sha256-S9I6b9+FngX0/W5t3EHG+H1ULsZKoQw1/S4HnSITYG0=";
|
2018-02-11 07:08:16 +00:00
|
|
|
};
|
|
|
|
|
2021-01-29 05:23:03 +00:00
|
|
|
vendorSha256 = "sha256-dVGSMPhAvN/kWgv3XHS+lOZdcbDNL44ELkv7fHAJWlI=";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-11-27 21:12:08 +00:00
|
|
|
subPackages = [ "cmd/lego" ];
|
2018-02-11 07:08:16 +00:00
|
|
|
|
2020-01-29 21:45:00 +00:00
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags=-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2018-02-11 07:08:16 +00:00
|
|
|
description = "Let's Encrypt client and ACME library written in Go";
|
|
|
|
license = licenses.mit;
|
2019-06-04 23:47:16 +00:00
|
|
|
homepage = "https://go-acme.github.io/lego/";
|
2020-04-20 00:36:40 +00:00
|
|
|
maintainers = teams.acme.members;
|
2018-02-11 07:08:16 +00:00
|
|
|
};
|
2020-08-24 06:22:51 +00:00
|
|
|
|
|
|
|
passthru.tests.lego = nixosTests.acme;
|
2018-02-11 07:08:16 +00:00
|
|
|
}
|