15 lines
368 B
Nix
15 lines
368 B
Nix
let
|
|
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
|
|
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
|
|
rustVersion = "1.56.1";
|
|
rust = pkgs.rust-bin.stable.${rustVersion}.default;
|
|
in
|
|
pkgs.mkShell {
|
|
buildInputs = [
|
|
rust
|
|
] ++ (with pkgs; [
|
|
pkg-config
|
|
]);
|
|
RUST_BACKTRACE = 1;
|
|
}
|