surrealdb: move RUSTFLAGS env variables into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-01-07 21:40:42 +01:00
parent 4184b094df
commit 482f0f5334
+7 -5
View File
@@ -26,13 +26,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
rm .cargo/config.toml
'';
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
env = {
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
RUSTFLAGS = "--cfg surrealdb_unstable";
RUSTFLAGS = "--cfg surrealdb_unstable";
};
nativeBuildInputs = [
pkg-config