on f366b97 help sign in
helix/shell.nix
17 lines 433 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;