Skip to content

Instantly share code, notes, and snippets.

@Slabity
Created November 7, 2018 21:41
Show Gist options
  • Select an option

  • Save Slabity/b13fb487deafca0ad8d5d0cde7df6ecd to your computer and use it in GitHub Desktop.

Select an option

Save Slabity/b13fb487deafca0ad8d5d0cde7df6ecd to your computer and use it in GitHub Desktop.
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