added shell.nix to test
This commit is contained in:
parent
2dd94631ff
commit
9d61ad5fbd
1 changed files with 19 additions and 0 deletions
19
shell.nix
Normal file
19
shell.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# <shell.nix>
|
||||||
|
{ pkgs ? import <nixpkgs> {}}:
|
||||||
|
|
||||||
|
let
|
||||||
|
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
|
||||||
|
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
|
||||||
|
ruststable = (pkgs.rust-bin.stable.latest.default.override {
|
||||||
|
extensions = [
|
||||||
|
"rust-src"
|
||||||
|
];
|
||||||
|
});
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
ruststable
|
||||||
|
rust-analyzer
|
||||||
|
bacon
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue