on f2e554d help sign in
helix/shell.nix
20 lines 500 B history raw
1{ stdenv, pkgs }:
3pkgs.mkShell {
4 nativeBuildInputs = with pkgs; [
5 (rust-bin.stable.latest.default.override { extensions = ["rust-src"]; })
6 lld_10
7 lldb
8 # pythonPackages.six
9 stdenv.cc.cc.lib
10 # pkg-config
11 ];
12 RUSTFLAGS = "-C link-arg=-fuse-ld=lld -C target-cpu=native";
13 RUST_BACKTRACE = "1";
14 # https://github.com/rust-lang/rust/issues/55979
15 LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
17 shellHook = ''
18 export HELIX_RUNTIME=$PWD/runtime
19 '';