haxe_4_1,haxe_4_2: fix build on Darwin

This commit is contained in:
OPNA2608
2021-04-20 23:06:35 +02:00
committed by sterni
parent 609d9cb227
commit 14b5ddf085
2 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, coreutils, ocaml-ng, zlib, pcre, neko, mbedtls }:
{ lib, stdenv, fetchFromGitHub, coreutils, ocaml-ng, zlib, pcre, neko, mbedtls, Security }:
let
ocamlDependencies = version:
@@ -31,7 +31,8 @@ let
inherit version;
buildInputs = [ zlib pcre neko ]
++ lib.optional (lib.versionAtLeast version "4.1") [ mbedtls ]
++ lib.optional (lib.versionAtLeast version "4.1") mbedtls
++ lib.optional (lib.versionAtLeast version "4.1" && stdenv.isDarwin) Security
++ ocamlDependencies version;
src = fetchFromGitHub {