build: provide Nix env and envrc for MSRV
This commit is contained in:
parent
60aa918513
commit
ff4c4a72b6
|
@ -1,2 +1,3 @@
|
||||||
/target
|
/target
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
.direnv
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
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;
|
||||||
|
}
|
Loading…
Reference in New Issue