From 3d3facb816dbdad715233b16429c18af4be022e3 Mon Sep 17 00:00:00 2001 From: Florian Franzen Date: Tue, 16 Jul 2024 01:25:26 +0200 Subject: [PATCH] nix: improve compat with broke crates --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d57ff716e6..4c598f143e 100644 --- a/flake.nix +++ b/flake.nix @@ -67,17 +67,23 @@ nativeBuildInputs = [ # - Customized rust toolchain (via path) (mkRustToolchain tpkgs) + # - Some helpers to improve compatibility + tpkgs.pkg-config + tpkgs.rustPlatform.bindgenHook ]; # - Protobuf compiler (via env var) PROTOC = "${pkgs.protobuf}/bin/protoc"; + # - Rocksdb for crates with feature bleed + ROCKSDB_LIB_DIR = "${tpkgs.rocksdb}/lib"; + # Provide needed dependencies: buildInputs = [ tpkgs.zlib.static ]; }; - + # Create developer shell for combination of build package set and target abi mkAbiShell = pkgs: abi: mkDevShell pkgs (mkCrossPkgs pkgs abi); in {