From 351b28d469b5c29b06b7f6cac4f6bd36513f2606 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Sun, 24 Jan 2021 15:44:43 -0800 Subject: [PATCH] libtiff: fix build on darwin Now that libtiff is using cmake, we need to let cmake set the build rpath for the tests to pass on darwin. The rpaths are rewritten at installation so the output libraries should be unaffected. --- pkgs/development/libraries/libtiff/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/libtiff/default.nix b/pkgs/development/libraries/libtiff/default.nix index 15ed6b6ed18..2fad2988898 100644 --- a/pkgs/development/libraries/libtiff/default.nix +++ b/pkgs/development/libraries/libtiff/default.nix @@ -18,6 +18,10 @@ stdenv.mkDerivation rec { sha256 = "0d46bdvxdiv59lxnb0xz9ywm8arsr6xsapi5s6y6vnys2wjz6aax"; }; + cmakeFlags = if stdenv.isDarwin then [ + "-DCMAKE_SKIP_BUILD_RPATH=OFF" + ] else null; + # FreeImage needs this patch patches = [ ./headers.patch ];