nix: Fix execution errors regarding runtime C lib.

pull/8/head
Blaž Hrastnik 4 years ago
parent 22fe2ebe72
commit 240f3a6cc4

@ -1,12 +1,15 @@
{ pkgs ? import <nixpkgs> {} }: { stdenv, pkgs ? import <nixpkgs> {} }:
pkgs.mkShell { pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
(rust-bin.nightly.latest.rust.override { extensions = ["rust-src"]; }) (rust-bin.nightly.latest.rust.override { extensions = ["rust-src"]; })
lld_10 lld_10
# pkgconfig stdenv.cc.cc.lib
# pkg-config
]; ];
RUSTFLAGS = "-C link-arg=-fuse-ld=lld -C target-cpu=native"; RUSTFLAGS = "-C link-arg=-fuse-ld=lld -C target-cpu=native";
RUST_BACKTRACE = "1"; RUST_BACKTRACE = "1";
# https://github.com/rust-lang/rust/issues/55979
LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
} }

Loading…
Cancel
Save