diff options
author | Robin Gloster <mail@glob.in> | 2019-05-02 00:15:30 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2019-05-02 00:15:30 +0200 |
commit | 0dbdf29237335cb49334793d838384cafa01cf0b (patch) | |
tree | bfeae0776c38fea4b002650a93dff8fa6a733062 /pkgs/tools/video/atomicparsley | |
parent | ecf59492c75220e37caf533d09087349ab7e5577 (diff) |
atomicparsley: fix cross
Diffstat (limited to 'pkgs/tools/video/atomicparsley')
-rw-r--r-- | pkgs/tools/video/atomicparsley/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/video/atomicparsley/default.nix b/pkgs/tools/video/atomicparsley/default.nix index 74f4c562102ca..f0ad4297c003a 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; { |