on ebfd67a help sign in
helix/shell.nix
15 lines 403 B history raw
1{ stdenv, pkgs }:
3pkgs.mkShell {
4 nativeBuildInputs = with pkgs; [
5 (rust-bin.nightly.latest.rust.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";