Skip to content

Commit

Permalink
feat(shell.nix): added file to support nix development
Browse files Browse the repository at this point in the history
  • Loading branch information
Guusvanmeerveld committed Nov 30, 2023
1 parent 3c1bcb9 commit 95ca3af
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"rust-analyzer.showUnlinkedFileNotification": false
"rust-analyzer.showUnlinkedFileNotification": false,
"nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix"
}
21 changes: 21 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
rustVersion = "1.67.0";
rust = pkgs.rust-bin.stable.${rustVersion}.default.override {
extensions = [
"rust-src"
];
};
in
pkgs.mkShell {
buildInputs = [
rust
] ++ (with pkgs; [
rust-analyzer
pkg-config
openssl
]);

RUST_BACKTRACE = 1;
}

0 comments on commit 95ca3af

Please sign in to comment.