3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/admin/lego/default.nix

33 lines
718 B
Nix
Raw Normal View History

2020-08-24 07:22:51 +01:00
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
2018-02-11 07:08:16 +00:00
buildGoModule rec {
2019-06-05 00:47:16 +01:00
pname = "lego";
2021-11-03 08:39:13 +00:00
version = "4.5.3";
2018-02-11 07:08:16 +00:00
src = fetchFromGitHub {
2019-06-05 00:47:16 +01:00
owner = "go-acme";
repo = pname;
rev = "v${version}";
2021-11-03 08:39:13 +00:00
sha256 = "sha256-xvTV6jZmQWs6g8Oq+IrwPZVS3fzY1/adg7IWh189ftU=";
2018-02-11 07:08:16 +00:00
};
2021-10-04 13:40:46 +01:00
vendorSha256 = "sha256-EK2E2YWdk2X1awdUhMOJh+qr+jnnftnKuPPpiHzXZHk=";
doCheck = false;
2019-11-27 21:12:08 +00:00
subPackages = [ "cmd/lego" ];
2018-02-11 07:08:16 +00:00
2021-08-26 07:45:51 +01:00
ldflags = [
"-X main.version=${version}"
2020-01-29 21:45:00 +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-05 00:47:16 +01:00
homepage = "https://go-acme.github.io/lego/";
2020-04-20 01:36:40 +01:00
maintainers = teams.acme.members;
2018-02-11 07:08:16 +00:00
};
2020-08-24 07:22:51 +01:00
passthru.tests.lego = nixosTests.acme;
2018-02-11 07:08:16 +00:00
}