Skip to content

Commit

Permalink
chore: add nix-shell configure for a minimal environment for developm…
Browse files Browse the repository at this point in the history
…ent (#5175)

* chore: add nix-shell development environment

* chore: add rust-analyzer

* chore: use .envrc as a private file
  • Loading branch information
sunng87 authored and evenyag committed Dec 20, 2024
1 parent 06d7bd9 commit 34fbe77
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ benchmarks/data

venv/

# Fuzz tests
# Fuzz tests
tests-fuzz/artifacts/
tests-fuzz/corpus/

# Nix
.direnv
.envrc
22 changes: 22 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -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
];

}

0 comments on commit 34fbe77

Please sign in to comment.