diff --git a/.gitignore b/.gitignore index c1b0a8961845..5823287889aa 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,10 @@ benchmarks/data venv/ -# Fuzz tests +# Fuzz tests tests-fuzz/artifacts/ tests-fuzz/corpus/ + +# Nix +.direnv +.envrc diff --git a/shell.nix b/shell.nix new file mode 100644 index 000000000000..b255fe845c76 --- /dev/null +++ b/shell.nix @@ -0,0 +1,22 @@ +let + nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable"; + fenix = import (fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz") {}; + pkgs = import nixpkgs { config = {}; overlays = []; }; +in + +pkgs.mkShellNoCC { + packages = with pkgs; [ + git + clang + gcc + mold + libgit2 + protobuf + (fenix.fromToolchainFile { + dir = ./.; + }) + fenix.rust-analyzer + cargo-nextest + ]; + +}