2021-02-04 17:25:54 +09:00
|
|
|
{ stdenv, pkgs }:
|
2021-01-19 15:54:51 +09:00
|
|
|
|
|
|
|
pkgs.mkShell {
|
|
|
|
nativeBuildInputs = with pkgs; [
|
2021-04-09 19:07:33 +09:00
|
|
|
(rust-bin.stable.latest.default.override { extensions = ["rust-src"]; })
|
2021-01-19 15:54:51 +09:00
|
|
|
lld_10
|
2021-01-19 16:52:19 +09:00
|
|
|
stdenv.cc.cc.lib
|
|
|
|
# pkg-config
|
2021-01-19 15:54:51 +09:00
|
|
|
];
|
2021-01-19 16:19:27 +09:00
|
|
|
RUSTFLAGS = "-C link-arg=-fuse-ld=lld -C target-cpu=native";
|
2021-01-19 15:54:51 +09:00
|
|
|
RUST_BACKTRACE = "1";
|
2021-01-19 16:52:19 +09:00
|
|
|
# https://github.com/rust-lang/rust/issues/55979
|
|
|
|
LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
|
2021-05-10 01:02:53 +09:00
|
|
|
|
|
|
|
HELIX_RUNTIME=./runtime;
|
2021-01-19 15:54:51 +09:00
|
|
|
}
|
|
|
|
|