summary refs log tree commit diff
diff options
context:
space:
mode:
authorsqualus <squalus@squalus.net>2022-05-05 08:07:42 -0700
committersqualus <squalus@squalus.net>2022-05-05 22:13:33 -0700
commit578f540e4b5f211819435bf7bee449faafee4a4c (patch)
tree538f58c3af6ce3754de7956a589e16f5494cb4d4
parent73268cc1b4297b5c09d8bb74ba97dcddd04b5122 (diff)
downloadnixpkgs-578f540e4b5f211819435bf7bee449faafee4a4c.tar
nixpkgs-578f540e4b5f211819435bf7bee449faafee4a4c.tar.gz
nixpkgs-578f540e4b5f211819435bf7bee449faafee4a4c.tar.bz2
nixpkgs-578f540e4b5f211819435bf7bee449faafee4a4c.tar.lz
nixpkgs-578f540e4b5f211819435bf7bee449faafee4a4c.tar.xz
nixpkgs-578f540e4b5f211819435bf7bee449faafee4a4c.tar.zst
nixpkgs-578f540e4b5f211819435bf7bee449faafee4a4c.zip
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.
-rw-r--r--pkgs/tools/system/collectd/default.nix3
1 files changed, 2 insertions, 1 deletions
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 = ''