about summary refs log tree commit diff
path: root/pkgs/development/libraries/rocksdb/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/rocksdb/default.nix')
-rw-r--r--pkgs/development/libraries/rocksdb/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/rocksdb/default.nix b/pkgs/development/libraries/rocksdb/default.nix
index b81061639d79..fb4cc16cd7eb 100644
--- a/pkgs/development/libraries/rocksdb/default.nix
+++ b/pkgs/development/libraries/rocksdb/default.nix
@@ -11,7 +11,7 @@
 , windows
 , enableJemalloc ? false
 , jemalloc
-, enableLiburing ? stdenv.isLinux
+, enableLiburing ? stdenv.hostPlatform.isLinux
 , liburing
 , enableShared ? !stdenv.hostPlatform.isStatic
 , sse42Support ? stdenv.hostPlatform.sse4_2Support
@@ -87,9 +87,9 @@ stdenv.mkDerivation (finalAttrs: {
   preInstall = ''
     mkdir -p $tools/bin
     cp tools/{ldb,sst_dump}${stdenv.hostPlatform.extensions.executable} $tools/bin/
-  '' + lib.optionalString stdenv.isDarwin ''
+  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
     ls -1 $tools/bin/* | xargs -I{} install_name_tool -change "@rpath/librocksdb.${lib.versions.major finalAttrs.version}.dylib" $out/lib/librocksdb.dylib {}
-  '' + lib.optionalString (stdenv.isLinux && enableShared) ''
+  '' + lib.optionalString (stdenv.hostPlatform.isLinux && enableShared) ''
     ls -1 $tools/bin/* | xargs -I{} patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib {}
   '';