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

31 lines
683 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule }:
2018-02-11 07:08:16 +00:00
buildGoModule rec {
2019-06-05 00:47:16 +01:00
pname = "lego";
2020-08-22 11:40:04 +01:00
version = "3.8.0";
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}";
2020-08-22 11:40:04 +01:00
sha256 = "02p7zlrz8fp5bsvhk4jrx5x3gxnl00friay1jihlzyk3s400n9jb";
2018-02-11 07:08:16 +00:00
};
2020-08-22 11:40:04 +01:00
vendorSha256 = "0jh7qi422i2114198fain9nwwf8yd8vna0p3g0hvginh59svyagc";
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}"
];
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
};
}