Created
April 30, 2019 13:52
-
-
Save georgewhewell/f4e038bde0605fdcae4e166b3c1a34fe to your computer and use it in GitHub Desktop.
rust project nix shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? (import <nixpkgs> {})}: | |
let | |
toolchain = with pkgs.rustChannels.stable; | |
(rust.override { | |
extensions = [ "rust-src" ]; | |
}); | |
in pkgs.mkShell { | |
buildInputs = with pkgs; [ | |
pkgs.jetbrains.idea-community | |
toolchain | |
pkg-config | |
openssl | |
]; | |
shellHook = '' | |
ln -sf ${toolchain} .toolchain | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment