Skip to content

Commit

Permalink
chore: improve nix-shell support
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Dec 17, 2024
1 parent 8a53846 commit 2a0a8fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[toolchain]
channel = "nightly-2024-10-19"
components = ["rust-analyzer"]
14 changes: 9 additions & 5 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@ let
pkgs = import nixpkgs { config = {}; overlays = []; };
in

pkgs.mkShellNoCC {
packages = with pkgs; [
pkgs.mkShell rec {
nativeBuildInputs = with pkgs; [
git
clang
gcc
mold
libgit2
protobuf
mold
(fenix.fromToolchainFile {
dir = ./.;
})
fenix.rust-analyzer
cargo-nextest
taplo
];

buildInputs = with pkgs; [
libgit2
];

LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
}

0 comments on commit 2a0a8fa

Please sign in to comment.