From 0dbdf29237335cb49334793d838384cafa01cf0b Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Thu, 2 May 2019 00:15:30 +0200 Subject: [PATCH] atomicparsley: fix cross --- pkgs/tools/video/atomicparsley/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/video/atomicparsley/default.nix b/pkgs/tools/video/atomicparsley/default.nix index 74f4c562102c..f0ad4297c003 100644 --- a/pkgs/tools/video/atomicparsley/default.nix +++ b/pkgs/tools/video/atomicparsley/default.nix @@ -18,6 +18,12 @@ stdenv.mkDerivation rec { cf-private ]; + configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ + # AC_FUNC_MALLOC is broken on cross builds. + "ac_cv_func_malloc_0_nonnull=yes" + "ac_cv_func_realloc_0_nonnull=yes" + ]; + installPhase = "install -D AtomicParsley $out/bin/AtomicParsley"; meta = with stdenv.lib; {