aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: d6cb543ac8ee7bc9543214faa2f7d95afcc9f1e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, stdenv, pkgs }:

pkgs.mkShell {
  nativeBuildInputs = with pkgs; [
    (rust-bin.stable.latest.default.override { extensions = ["rust-src"]; })
    lld_10
    lldb
    # pythonPackages.six
    stdenv.cc.cc.lib
    # pkg-config
  ];
  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 = lib.makeLibraryPath (with pkgs; [
    stdenv.cc.cc.lib
  ]);

  shellHook = ''
    export HELIX_RUNTIME=$PWD/runtime
  '';
}