about summary refs log tree commit diff
path: root/pkgs/servers/matrix-conduit
diff options
context:
space:
mode:
authorYureka <yuka@yuka.dev>2023-01-20 01:40:48 +0100
committerPeter Hoeg <peter@hoeg.com>2023-01-22 20:45:05 +0800
commitaeea71595ea439c22a50b731f5a51d35b97dd868 (patch)
tree4a3adf7a81a272cc6eff263f250d0404e31254bd /pkgs/servers/matrix-conduit
parent1f6f9d95c6bbd51f8f442d13c1addf35b2754481 (diff)
matrix-conduit: link against system rocksdb
Diffstat (limited to 'pkgs/servers/matrix-conduit')
-rw-r--r--pkgs/servers/matrix-conduit/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/servers/matrix-conduit/default.nix b/pkgs/servers/matrix-conduit/default.nix
index bcf47813e92d3..5f8fe6a2cc205 100644
--- a/pkgs/servers/matrix-conduit/default.nix
+++ b/pkgs/servers/matrix-conduit/default.nix
@@ -1,4 +1,4 @@
-{ lib, rustPlatform, fetchFromGitLab, stdenv, darwin, nixosTests }:
+{ lib, rustPlatform, fetchFromGitLab, stdenv, darwin, nixosTests, rocksdb_6_23 }:
 
 rustPlatform.buildRustPackage rec {
   pname = "matrix-conduit";
@@ -30,6 +30,9 @@ rustPlatform.buildRustPackage rec {
     darwin.apple_sdk.frameworks.Security
   ];
 
+  ROCKSDB_INCLUDE_DIR = "${rocksdb_6_23}/include";
+  ROCKSDB_LIB_DIR = "${rocksdb_6_23}/lib";
+
   # tests failed on x86_64-darwin with SIGILL: illegal instruction
   doCheck = !(stdenv.isx86_64 && stdenv.isDarwin);