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

28 lines
671 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-03-14 07:32:22 +00:00
version = "3.4.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-03-14 07:32:22 +00:00
sha256 = "198nc0rpkxyjms2lvv7g0rzy8cczzs662ncywzmcqsd1qs67zvif";
2018-02-11 07:08:16 +00:00
};
2020-03-14 07:32:22 +00:00
modSha256 = "09w2lsn1zbn750m77084x886k4lx264dgl80d9g7kxjnsqgsmzig";
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}"
];
2018-02-11 07:08:16 +00:00
meta = with lib; {
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/";
2018-02-11 07:08:16 +00:00
maintainers = with maintainers; [ andrew-d ];
};
}