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.
main
squalus 2 years ago
parent 73268cc1b4
commit 578f540e4b
  1. 3
      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 = ''

Loading…
Cancel
Save