summary refs log tree commit diff
path: root/pkgs/games/tintin/default.nix
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-08-24 04:32:05 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-08-24 18:21:41 -0400
commitb0f07a1695cfe9f0383ecd90acd9250ec0f33e59 (patch)
tree9c1d70c11823cc741a97f0988eefda2b959de445 /pkgs/games/tintin/default.nix
parente3ba3411c5c67453c0e999dbb222b5319691b612 (diff)
downloadnixpkgs-b0f07a1695cfe9f0383ecd90acd9250ec0f33e59.tar
nixpkgs-b0f07a1695cfe9f0383ecd90acd9250ec0f33e59.tar.gz
nixpkgs-b0f07a1695cfe9f0383ecd90acd9250ec0f33e59.tar.bz2
nixpkgs-b0f07a1695cfe9f0383ecd90acd9250ec0f33e59.tar.lz
nixpkgs-b0f07a1695cfe9f0383ecd90acd9250ec0f33e59.tar.xz
nixpkgs-b0f07a1695cfe9f0383ecd90acd9250ec0f33e59.tar.zst
nixpkgs-b0f07a1695cfe9f0383ecd90acd9250ec0f33e59.zip
tintin: fix on darwin
Diffstat (limited to 'pkgs/games/tintin/default.nix')
-rw-r--r--pkgs/games/tintin/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/games/tintin/default.nix b/pkgs/games/tintin/default.nix
index 73070db244f..b813900ca39 100644
--- a/pkgs/games/tintin/default.nix
+++ b/pkgs/games/tintin/default.nix
@@ -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