monorepo/fluent-ergonomics/shell.nix

22 lines
573 B
Nix
Raw Normal View History

2021-12-15 00:48:22 +00:00
let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <pkgs-21.05> { overlays = [ rust_overlay ]; };
unstable = import <unstable> {};
rust = pkgs.rust-bin.stable."1.55.0".default.override {
extensions = [ "rust-src" ];
};
in pkgs.mkShell {
name = "luminescent-dreams-core";
buildInputs = [
pkgs.openssl
rust
unstable.rust-analyzer
];
shellHook = ''
if [ -e ~/.nixpkgs/shellhook.sh ]; then . ~/.nixpkgs/shellhook.sh; fi
'';
}