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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
718 B
Nix
Raw Normal View History

2020-08-24 08:22:51 +02:00
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
2018-02-11 08:08:16 +01:00
buildGoModule rec {
2019-06-05 01:47:16 +02:00
pname = "lego";
2022-01-24 18:10:01 +01:00
version = "4.6.0";
2018-02-11 08:08:16 +01:00
src = fetchFromGitHub {
2019-06-05 01:47:16 +02:00
owner = "go-acme";
repo = pname;
rev = "v${version}";
2022-01-24 18:10:01 +01:00
sha256 = "sha256-FisQS/qbl7f4aszc2Ft6nmuHNrDreOQdN0jrWMOvaAk=";
2018-02-11 08:08:16 +01:00
};
2022-01-24 18:10:01 +01:00
vendorSha256 = "sha256-cLM4YGguQf7lO5PUPmd/at1Aqrp9m8zFG6GWqcduJmw=";
doCheck = false;
2019-11-27 22:12:08 +01:00
subPackages = [ "cmd/lego" ];
2018-02-11 08:08:16 +01:00
2021-08-26 08:45:51 +02:00
ldflags = [
"-X main.version=${version}"
2020-01-29 22:45:00 +01:00
];
meta = with lib; {
2018-02-11 08:08:16 +01:00
description = "Let's Encrypt client and ACME library written in Go";
license = licenses.mit;
2019-06-05 01:47:16 +02:00
homepage = "https://go-acme.github.io/lego/";
2020-04-20 02:36:40 +02:00
maintainers = teams.acme.members;
2018-02-11 08:08:16 +01:00
};
2020-08-24 08:22:51 +02:00
passthru.tests.lego = nixosTests.acme;
2018-02-11 08:08:16 +01:00
}