{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; in { devShells.default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ pkgs.rustc pkgs.cargo pkgs.clippy clang pkg-config ]; buildInputs = with pkgs; [ openssl ] ++ (if pkgs.stdenv.isDarwin then [ libiconv ] else [ ]); packages = with pkgs; [ rust-analyzer rustfmt python3 cargo-insta ]; RUST_BACKTRACE = "1"; RUST_LOG = "debug"; LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib"; }; } ); }