about summary refs log tree commit diff
path: root/pkgs/servers/nosql/arangodb/default.nix
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-11-13 06:47:08 -0800
committerAdam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>2023-11-17 08:07:34 +0000
commitc7e0f6b9050553dfa8dff259a0536326ac43b0ff (patch)
tree6862049af64b6ccf9911f5cb54f1651aaf07a182 /pkgs/servers/nosql/arangodb/default.nix
parent6a689e72efffde73cc2c6cfa7e142a8d7f8feafd (diff)
downloadnixlib-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar
nixlib-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.gz
nixlib-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.bz2
nixlib-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.lz
nixlib-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.xz
nixlib-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.tar.zst
nixlib-c7e0f6b9050553dfa8dff259a0536326ac43b0ff.zip
treewide: s_targetPlatform_hostPlatform_ in non-compiler packages
stdenv.targetPlatform really shouldn't be used by software that
doesn't generate or manipulate binaries.  I reviewed all uses of
targetPlatform outside of pkgs/development/compilers and pkgs/stdenv
and replaced those which weren't involved in something which fits
these criteria.
Diffstat (limited to 'pkgs/servers/nosql/arangodb/default.nix')
-rw-r--r--pkgs/servers/nosql/arangodb/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/servers/nosql/arangodb/default.nix b/pkgs/servers/nosql/arangodb/default.nix
index 36c978e364fe..52b9125e99d5 100644
--- a/pkgs/servers/nosql/arangodb/default.nix
+++ b/pkgs/servers/nosql/arangodb/default.nix
@@ -15,12 +15,12 @@
 , lzo
 , which
 , targetArchitecture ? null
-, asmOptimizations ? gcc10Stdenv.targetPlatform.isx86
+, asmOptimizations ? gcc10Stdenv.hostPlatform.isx86
 }:
 
 let
   defaultTargetArchitecture =
-    if gcc10Stdenv.targetPlatform.isx86
+    if gcc10Stdenv.hostPlatform.isx86
     then "haswell"
     else "core";
 
@@ -72,7 +72,7 @@ gcc10Stdenv.mkDerivation rec {
     "-DTARGET_ARCHITECTURE=${targetArch}"
   ] ++ lib.optionals asmOptimizations [
     "-DASM_OPTIMIZATIONS=ON"
-    "-DHAVE_SSE42=${if gcc10Stdenv.targetPlatform.sse4_2Support then "ON" else "OFF"}"
+    "-DHAVE_SSE42=${if gcc10Stdenv.hostPlatform.sse4_2Support then "ON" else "OFF"}"
   ];
 
   meta = with lib; {