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