on master help sign in
nix: Fix execution errors regarding runtime C lib.
commit240f3a6cc4af8b51a866770fbbb6771032d10f78 authorBlaž Hrastnik <blaz@mxxn.io> dateTue 19 Jan 2021, 16:52 (6 years ago) parent22fe2eb
1 file changed+5−2
shell.nix+5−2
shell.nix+5−2
@@ -1,12 +1,15 @@
1−{ pkgs ? import <nixpkgs> {} }:
1+{ stdenv, pkgs ? import <nixpkgs> {} }:
22
33pkgs.mkShell {
44 nativeBuildInputs = with pkgs; [
55 (rust-bin.nightly.latest.rust.override { extensions = ["rust-src"]; })
66 lld_10
7− # pkgconfig
7+ stdenv.cc.cc.lib
8+ # pkg-config
89 ];
910 RUSTFLAGS = "-C link-arg=-fuse-ld=lld -C target-cpu=native";
1011 RUST_BACKTRACE = "1";
12+ # https://github.com/rust-lang/rust/issues/55979
13+ LD_LIBRARY_PATH="${stdenv.cc.cc.lib}/lib64:$LD_LIBRARY_PATH";
1114}
1215