From 0f0bfa834416dfc251e1822e0545b510a3fe0447 Mon Sep 17 00:00:00 2001 From: Majiir Paktu Date: Sun, 17 Dec 2023 17:36:53 -0500 Subject: [PATCH] gen6dns: fix cross compilation --- pkgs/tools/networking/gen6dns/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/networking/gen6dns/default.nix b/pkgs/tools/networking/gen6dns/default.nix index 6f020c2a6636..92d33d55da98 100644 --- a/pkgs/tools/networking/gen6dns/default.nix +++ b/pkgs/tools/networking/gen6dns/default.nix @@ -19,6 +19,10 @@ stdenv.mkDerivation rec { installManPage gen6dns.1 ''; + configureFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ + "ac_cv_func_malloc_0_nonnull=yes" + ]; + makeFlags = [ "INSTALL_DIR=$(out)/bin" ]; meta = with lib; {