From 6cdbb1fb1febfd97ab4490fba461c9eb6453fa33 Mon Sep 17 00:00:00 2001 From: Justin Humm Date: Mon, 15 Jun 2020 21:03:03 +0200 Subject: [PATCH] bind: set BUILD_CC for cross compilation This is due to a hint by @Ericson2314 in https://github.com/NixOS/nixpkgs/pull/86166#issuecomment-633153996 --- pkgs/servers/dns/bind/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/dns/bind/default.nix b/pkgs/servers/dns/bind/default.nix index a7581ccbb11..2aae5634cc5 100644 --- a/pkgs/servers/dns/bind/default.nix +++ b/pkgs/servers/dns/bind/default.nix @@ -54,7 +54,8 @@ stdenv.mkDerivation rec { "--without-eddsa" "--with-aes" ] ++ lib.optional stdenv.isLinux "--with-libcap=${libcap.dev}" - ++ lib.optional enableSeccomp "--enable-seccomp"; + ++ lib.optional enableSeccomp "--enable-seccomp" + ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "BUILD_CC=$(CC_FOR_BUILD)"; postInstall = '' moveToOutput bin/bind9-config $dev