adventofcode-2020/shell.nix

18 lines
393 B
Nix
Raw Normal View History

2020-12-02 20:30:51 +00:00
let
mozilla = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
pkgs = import <nixpkgs> { overlays = [ mozilla ]; };
rustChannel = pkgs.latest.rustChannels.stable;
in
with pkgs;
mkShell {
buildInputs = [
rustChannel.rust
];
shellHook = ''
export RUST_SRC_PATH="${rustChannel.rust-src}/lib/rustlib/src/rust/library"
'';
}