lego: fix build on darwin
This commit is contained in:
parent
3772f50fc6
commit
cd50659071
@ -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/";
|
||||
|
@ -4596,7 +4596,9 @@ in
|
||||
|
||||
lefthook = gitAndTools.lefthook;
|
||||
|
||||
lego = callPackage ../tools/admin/lego { };
|
||||
lego = callPackage ../tools/admin/lego {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
leocad = callPackage ../applications/graphics/leocad { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user