Skip to content

Instantly share code, notes, and snippets.

@georgewhewell
Created April 30, 2019 13:52
Show Gist options
  • Save georgewhewell/f4e038bde0605fdcae4e166b3c1a34fe to your computer and use it in GitHub Desktop.
Save georgewhewell/f4e038bde0605fdcae4e166b3c1a34fe to your computer and use it in GitHub Desktop.
rust project nix shell
{ 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