From 3b85481052bb1feb5dd54977696482b119e08acc Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Fri, 12 Jan 2024 19:45:53 -0500 Subject: [PATCH] libewf: fix cross compilation --- pkgs/development/libraries/libewf/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/libewf/default.nix b/pkgs/development/libraries/libewf/default.nix index 101f8f16a3f4..dffacc7d276c 100644 --- a/pkgs/development/libraries/libewf/default.nix +++ b/pkgs/development/libraries/libewf/default.nix @@ -13,6 +13,11 @@ stdenv.mkDerivation rec { buildInputs = [ zlib openssl libuuid ] ++ lib.optionals stdenv.isDarwin [ bzip2 ]; + # cannot run test program while cross compiling + configureFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ + "ac_cv_openssl_xts_duplicate_keys=yes" + ]; + meta = { description = "Library for support of the Expert Witness Compression Format"; homepage = "https://sourceforge.net/projects/libewf/";