21 lines
544 B
Nix
21 lines
544 B
Nix
|
let
|
||
|
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
|
||
|
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
|
||
|
unstable = import <unstable> {};
|
||
|
rust = pkgs.rust-bin.stable."1.59.0".default.override {
|
||
|
extensions = [ "rust-src" ];
|
||
|
};
|
||
|
|
||
|
in pkgs.mkShell {
|
||
|
name = "datasphere";
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
rust
|
||
|
unstable.rust-analyzer
|
||
|
];
|
||
|
|
||
|
shellHook = ''
|
||
|
if [ -e ~/.nixpkgs/shellhook.sh ]; then . ~/.nixpkgs/shellhook.sh; fi
|
||
|
'';
|
||
|
}
|