nixpkgs/pkgs/tools/admin/lego/default.nix

33 lines
737 B
Nix
Raw Normal View History

2020-08-23 23:22:51 -07:00
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
2018-02-10 23:08:16 -08:00
buildGoModule rec {
2019-06-04 16:47:16 -07:00
pname = "lego";
2020-09-04 20:56:13 -07:00
version = "4.0.1";
2018-02-10 23:08:16 -08:00
src = fetchFromGitHub {
2019-06-04 16:47:16 -07:00
owner = "go-acme";
repo = pname;
rev = "v${version}";
2020-09-04 20:56:13 -07:00
sha256 = "1s3sh4n12g7ylkpmxqjcpdw3gqhdjbh9r09h2rsrm30xr4qaqpng";
2018-02-10 23:08:16 -08:00
};
2020-09-04 20:56:13 -07:00
vendorSha256 = "0p2pibid2d761whfk7zgq230lyqi2f0wmfvxqkjzrd1sba40r9bp";
doCheck = false;
2019-11-27 13:12:08 -08:00
subPackages = [ "cmd/lego" ];
2018-02-10 23:08:16 -08:00
2020-01-29 13:45:00 -08:00
buildFlagsArray = [
"-ldflags=-X main.version=${version}"
];
meta = with lib; {
2018-02-10 23:08:16 -08:00
description = "Let's Encrypt client and ACME library written in Go";
license = licenses.mit;
2019-06-04 16:47:16 -07:00
homepage = "https://go-acme.github.io/lego/";
2020-04-19 17:36:40 -07:00
maintainers = teams.acme.members;
2018-02-10 23:08:16 -08:00
};
2020-08-23 23:22:51 -07:00
passthru.tests.lego = nixosTests.acme;
2018-02-10 23:08:16 -08:00
}