lego: fix build on darwin

This commit is contained in:
Mario Rodas
2020-03-21 05:37:00 -05:00
parent 3772f50fc6
commit cd50659071
2 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, buildGoModule }:
{ stdenv, fetchFromGitHub, buildGoModule, Security }:
buildGoModule rec {
pname = "lego";
@@ -14,11 +14,13 @@ buildGoModule rec {
modSha256 = "10n8pcbmzlnk63gzsjb1xnmjwxfhxsqx8ffpcbwdzq9fc5yvjiii";
subPackages = [ "cmd/lego" ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
buildFlagsArray = [
"-ldflags=-X main.version=${version}"
];
meta = with lib; {
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/";