tintin: fix on darwin

This commit is contained in:
Dmitry Kalinkin 2021-08-24 04:32:05 -04:00
parent e3ba3411c5
commit b0f07a1695
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -1,4 +1,5 @@
{ stdenv, fetchurl, lib, zlib, pcre
, memorymappingHook, memstreamHook
, tlsSupport ? true, gnutls ? null
# ^ set { tlsSupport = false; } to reduce closure size by ~= 18.6 MB
}:
@ -15,7 +16,9 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = lib.optional tlsSupport gnutls.dev;
buildInputs = [ zlib pcre ] ++ lib.optional tlsSupport gnutls;
buildInputs = [ zlib pcre ]
++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook memstreamHook ]
++ lib.optional tlsSupport gnutls;
preConfigure = ''
cd src