{ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, utils, }: utils.lib.eachDefaultSystem ( system: let pkgs = import nixpkgs { inherit system; }; in { devShells.default = with pkgs; (mkShell.override { stdenv = llvmPackages.stdenv; }) { packages = [ rustPackages.cargo rustPackages.rustc rustPackages.rustfmt rustPackages.clippy protobuf ]; LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; RUST_SRC_PATH = "${rustPackages.rustPlatform.rustLibSrc}"; RUST_LOG = "debug,vapore=trace,vapore-client=trace,bindgen=error"; RUST_BACKTRACE = "1"; }; formatter = pkgs.nixfmt-rfc-style; } ); }