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.
This commit is contained in:
squalus 2022-05-05 08:07:42 -07:00
parent 73268cc1b4
commit 578f540e4b

View file

@ -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 = ''