From 10fda118ee23265d8bc55a81d7d8c650929b1ec9 Mon Sep 17 00:00:00 2001 From: John Soo Date: Thu, 27 Oct 2022 10:59:58 -0700 Subject: [PATCH] arangodb: avoid reading /proc/cpuinfo during build Avoid non-deterministic builds of ArangoDB proper. Note that this provides 0 guarantees about the vendored libraries doing anything similar. --- pkgs/servers/nosql/arangodb/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/nosql/arangodb/default.nix b/pkgs/servers/nosql/arangodb/default.nix index 789f6d391f7e..e6555d31e095 100644 --- a/pkgs/servers/nosql/arangodb/default.nix +++ b/pkgs/servers/nosql/arangodb/default.nix @@ -45,6 +45,9 @@ gcc10Stdenv.mkDerivation rec { "-DUSE_MAINTAINER_MODE=OFF" "-DUSE_GOOGLE_TESTS=off" "-DCMAKE_BUILD_TYPE=RelWithDebInfo" + + # avoid reading /proc/cpuinfo for feature detection + "-DTARGET_ARCHITECTURE=generic" ]; meta = with lib; {