mkcert: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:46:00 -05:00
parent 3c1c304c7a
commit e0757cf88a
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "mkcert";
@ -19,7 +19,9 @@ buildGoModule rec {
-X ${goPackagePath}/main.Version=${version}
'';
meta = with lib; {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
homepage = https://github.com/FiloSottile/mkcert;
description = "A simple tool for making locally-trusted development certificates";
license = licenses.bsd3;

View File

@ -10582,7 +10582,9 @@ in
mk = callPackage ../development/tools/build-managers/mk { };
mkcert = callPackage ../development/tools/misc/mkcert { };
mkcert = callPackage ../development/tools/misc/mkcert {
inherit (darwin.apple_sdk.frameworks) Security;
};
mkdocs = callPackage ../development/tools/documentation/mkdocs { };