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