diff options
-rw-r--r-- | shell.nix | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,12 +1,15 @@ -{ pkgs ? import <nixpkgs> {} }: +{ stdenv, pkgs ? import <nixpkgs> {} }: pkgs.mkShell { nativeBuildInputs = with pkgs; [ (rust-bin.nightly.latest.rust.override { extensions = ["rust-src"]; }) lld_10 - # pkgconfig + 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"; } |