on a2147fc help sign in
helix/shell.nix
18 lines 484 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 stdenv.cc.cc.lib
8 # pkg-config
9 ];
10 RUSTFLAGS = "-C link-arg=-fuse-ld=lld -C target-cpu=native";
11 RUST_BACKTRACE = "1";
12 # https://github.com/rust-lang/rust/issues/55979
13 LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
15 # HELIX_RUNTIME=./runtime;
16 HELIX_RUNTIME="/home/speed/src/helix/runtime";