summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorYves Fischer <yvesf+git@xapek.org>2022-09-05 22:28:38 +0200
committerYves Fischer <yvesf+git@xapek.org>2022-09-05 22:39:24 +0200
commit1b823602848a04e9d5ad16f58440da45a123c9b0 (patch)
treedbcde1119cd942f0a9c0c4e81ab4b1dbfae0a5c8 /pkgs/tools/graphics
parente8e48a7a53e611ff3ae634617326924bdd6dbfb8 (diff)
downloadnixpkgs-1b823602848a04e9d5ad16f58440da45a123c9b0.tar
nixpkgs-1b823602848a04e9d5ad16f58440da45a123c9b0.tar.gz
nixpkgs-1b823602848a04e9d5ad16f58440da45a123c9b0.tar.bz2
nixpkgs-1b823602848a04e9d5ad16f58440da45a123c9b0.tar.lz
nixpkgs-1b823602848a04e9d5ad16f58440da45a123c9b0.tar.xz
nixpkgs-1b823602848a04e9d5ad16f58440da45a123c9b0.tar.zst
nixpkgs-1b823602848a04e9d5ad16f58440da45a123c9b0.zip
scanbd: fix cross compile configureFlags
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/scanbd/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/scanbd/default.nix b/pkgs/tools/graphics/scanbd/default.nix
index 2f2d0523469..3f2331a0de0 100644
--- a/pkgs/tools/graphics/scanbd/default.nix
+++ b/pkgs/tools/graphics/scanbd/default.nix
@@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
     "--enable-udev"
     "--with-scanbdconfdir=/etc/scanbd"
     "--with-systemdsystemunitdir=$out/lib/systemd/system"
+  ] ++ 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"
   ];
 
   enableParallelBuilding = true;