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

28 lines
662 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2018-02-11 08:08:16 +01:00
buildGoModule rec {
2019-06-05 01:47:16 +02:00
pname = "lego";
2020-05-11 23:47:42 +02:00
version = "3.7.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}";
2020-06-01 10:59:41 +02:00
sha256 = "03824c5nfii7cc6mr1hdkyd4jjy8vpn08lnj4c6pc61s3i6gacc6";
2018-02-11 08:08:16 +01:00
};
vendorSha256 = "14453iiya6algkympyvwm03qgjcwk79z8bbrij7qhnp52qfrbmrp";
2019-11-27 22:12:08 +01:00
subPackages = [ "cmd/lego" ];
2018-02-11 08:08:16 +01:00
2020-01-29 22:45:00 +01:00
buildFlagsArray = [
"-ldflags=-X main.version=${version}"
];
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
};
}