Skip to content

Commit

Permalink
nix: improve compat with broke crates
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianFranzen committed Jul 17, 2024
1 parent ced21a8 commit 9c3245b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9c3245b

Please sign in to comment.