Created
November 7, 2018 21:41
-
-
Save Slabity/b13fb487deafca0ad8d5d0cde7df6ecd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| with import <nixpkgs> { }; | |
| stdenv.mkDerivation rec { | |
| name = "Rust"; | |
| buildInputs = [ | |
| rustChannels.nightly.rust | |
| vulkan-loader | |
| vulkan-headers | |
| cmake | |
| xlibsWrapper | |
| ]; | |
| shellHook = '' | |
| export RUST_SRC_PATH="${rustChannels.nightly.rust-src}/lib/rustlib/src/rust/src/" | |
| export LIBCLANG_PATH="${llvmPackages.libclang}/lib" | |
| export LD_LIBRARY_PATH="${xlibsWrapper}/lib:${vulkan-loader}/lib:${xlibs.libXcursor}/lib:${xlibs.libXrandr}/lib:${xlibs.libXi}/lib:${xlibs.libxcb}/lib" | |
| ''; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment