mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-02 06:45:45 +03:00
19 lines
484 B
Nix
19 lines
484 B
Nix
{ stdenv, pkgs }:
|
|
|
|
pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
(rust-bin.stable.latest.default.override { extensions = ["rust-src"]; })
|
|
lld_10
|
|
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="${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
|
|
|
|
# HELIX_RUNTIME=./runtime;
|
|
HELIX_RUNTIME="/home/speed/src/helix/runtime";
|
|
}
|
|
|