about summary refs log tree commit diff
path: root/pkgs/by-name/ke/keydb/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ke/keydb/package.nix')
-rw-r--r--pkgs/by-name/ke/keydb/package.nix23
1 files changed, 13 insertions, 10 deletions
diff --git a/pkgs/by-name/ke/keydb/package.nix b/pkgs/by-name/ke/keydb/package.nix
index f33b51a0fbff..ed6ba8bd518c 100644
--- a/pkgs/by-name/ke/keydb/package.nix
+++ b/pkgs/by-name/ke/keydb/package.nix
@@ -12,7 +12,7 @@
   jemalloc,
   which,
   tcl,
-  tcltls,
+  tclPackages,
   ps,
   getconf,
   nixosTests,
@@ -48,23 +48,26 @@ stdenv.mkDerivation (finalAttrs: {
       "PREFIX=${placeholder "out"}"
       "AR=${stdenv.cc.targetPrefix}ar"
       "RANLIB=${stdenv.cc.targetPrefix}ranlib"
-      "USEASM=${if stdenv.isx86_64 then "true" else "false"}"
+      "USEASM=${if stdenv.hostPlatform.isx86_64 then "true" else "false"}"
     ]
     ++ lib.optionals (!tlsSupport) [ "BUILD_TLS=no" ]
     ++ lib.optionals withSystemd [ "USE_SYSTEMD=yes" ]
-    ++ lib.optionals (!stdenv.isx86_64) [ "MALLOC=libc" ];
+    ++ lib.optionals (!stdenv.hostPlatform.isx86_64) [ "MALLOC=libc" ];
 
   enableParallelBuilding = true;
 
-  hardeningEnable = lib.optionals (!stdenv.isDarwin) [ "pie" ];
+  hardeningEnable = lib.optionals (!stdenv.hostPlatform.isDarwin) [ "pie" ];
 
   # darwin currently lacks a pure `pgrep` which is extensively used here
-  doCheck = !stdenv.isDarwin;
-  nativeCheckInputs = [
-    which
-    tcl
-    ps
-  ] ++ lib.optionals stdenv.hostPlatform.isStatic [ getconf ] ++ lib.optionals tlsSupport [ tcltls ];
+  doCheck = !stdenv.hostPlatform.isDarwin;
+  nativeCheckInputs =
+    [
+      which
+      tcl
+      ps
+    ]
+    ++ lib.optionals stdenv.hostPlatform.isStatic [ getconf ]
+    ++ lib.optionals tlsSupport [ tclPackages.tcltls ];
   checkPhase = ''
     runHook preCheck