helix-mirror/shell.nix

16 lines
403 B
Nix
Raw Normal View History

2021-02-04 12:25:54 +04:00
{ stdenv, pkgs }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(rust-bin.nightly.latest.rust.override { extensions = ["rust-src"]; })
lld_10
stdenv.cc.cc.lib
# pkg-config
];
2021-01-19 11:19:27 +04:00
RUSTFLAGS = "-C link-arg=-fuse-ld=lld -C target-cpu=native";
RUST_BACKTRACE = "1";
# https://github.com/rust-lang/rust/issues/55979
LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
}