helix/shell.nix

23 lines
522 B
Nix
Raw Normal View History

2021-06-07 15:33:17 +03:00
{ lib, stdenv, pkgs }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
2021-04-09 13:07:33 +03:00
(rust-bin.stable.latest.default.override { extensions = ["rust-src"]; })
lld_10
2021-06-03 04:31:33 +03:00
lldb
# pythonPackages.six
stdenv.cc.cc.lib
# pkg-config
];
2021-01-19 10:19:27 +03:00
RUSTFLAGS = "-C link-arg=-fuse-ld=lld -C target-cpu=native";
RUST_BACKTRACE = "1";
# https://github.com/rust-lang/rust/issues/55979
2021-06-07 15:33:17 +03:00
LD_LIBRARY_PATH = lib.makeLibraryPath (with pkgs; [
stdenv.cc.cc.lib
]);
shellHook = ''
export HELIX_RUNTIME=$PWD/runtime
'';
}