-
-
Save yaymukund/d9aeb8d2529d2ae3af9b8ae7806a15ab to your computer and use it in GitHub Desktop.
How to set LD_LIBRARY_PATH for a Rust project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> { }, lib ? pkgs.stdenv.lib }: | |
pkgs.mkShell rec { | |
name = "rust-env"; | |
buildInputs = with pkgs; [ | |
rustc | |
cargo | |
clang | |
openssl | |
pkgconfig | |
libGL | |
xorg.libX11 | |
xorg.libXcursor | |
xorg.libXrandr | |
xorg.libXi | |
]; | |
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment