mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-11 16:07:00 +03:00
23 lines
522 B
Nix
23 lines
522 B
Nix
{ 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
|
|
'';
|
|
}
|