helix-mods/shell.nix

21 lines
500 B
Nix
Raw Normal View History

2021-02-04 09:25:54 +01:00
{ stdenv, pkgs }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
2021-04-09 12:07:33 +02:00
(rust-bin.stable.latest.default.override { extensions = ["rust-src"]; })
lld_10
2021-06-03 03:31:33 +02:00
lldb
# pythonPackages.six
stdenv.cc.cc.lib
# pkg-config
];
2021-01-19 08:19:27 +01: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";
shellHook = ''
export HELIX_RUNTIME=$PWD/runtime
'';
}