3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/admin/lego/default.nix
2020-03-21 05:37:00 -05:00

30 lines
759 B
Nix

{ stdenv, fetchFromGitHub, buildGoModule, Security }:
buildGoModule rec {
pname = "lego";
version = "3.5.0";
src = fetchFromGitHub {
owner = "go-acme";
repo = pname;
rev = "v${version}";
sha256 = "08mh2q426gmhcaz578lw08jbxfqb7qm37cd00ap937dymi1zs9qw";
};
modSha256 = "10n8pcbmzlnk63gzsjb1xnmjwxfhxsqx8ffpcbwdzq9fc5yvjiii";
subPackages = [ "cmd/lego" ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [
"-ldflags=-X main.version=${version}"
];
meta = with stdenv.lib; {
description = "Let's Encrypt client and ACME library written in Go";
license = licenses.mit;
homepage = "https://go-acme.github.io/lego/";
maintainers = with maintainers; [ andrew-d ];
};
}