From 578f540e4b5f211819435bf7bee449faafee4a4c Mon Sep 17 00:00:00 2001 From: squalus Date: Thu, 5 May 2022 08:07:42 -0700 Subject: [PATCH] collectd: support cross compile Prevent the double memory layout check from running during cross compile. Provide an answer that works for both x86_64 and aarch64. --- pkgs/tools/system/collectd/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/system/collectd/default.nix b/pkgs/tools/system/collectd/default.nix index 8d272b15acf..e957c10a85c 100644 --- a/pkgs/tools/system/collectd/default.nix +++ b/pkgs/tools/system/collectd/default.nix @@ -36,7 +36,8 @@ stdenv.mkDerivation rec { configureFlags = [ "--localstatedir=/var" "--disable-werror" - ] ++ plugins.configureFlags; + ] ++ plugins.configureFlags + ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "--with-fp-layout=nothing" ]; # do not create directories in /var during installPhase postConfigure = ''