{ clang , lib , libclang , pkg-config , rustPlatform }: let cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml); in rustPlatform.buildRustPackage rec { inherit (cargoToml.package) version; pname = cargoToml.package.name; cargoLock.lockFile = ./Cargo.lock; src = lib.cleanSource ./.; nativeBuildInputs = [ clang pkg-config ]; buildInputs = [ ]; LIBCLANG_PATH = "${libclang.lib}/lib"; }