Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Slabity/384747053b7c2dd9b0a153b0f05bb274 to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
in with pkgs; stdenv.mkDerivation rec {
name = "vulkan-env";
nativeBuildInputs = [
cmake
pkgconfig
];
buildInputs = with xlibs; [
libxcb.dev
libX11.dev
];
LD_LIBRARY_PATH = with xlibs; stdenv.lib.makeLibraryPath [
libX11
libXcursor
libXrandr
libXi
vulkan-loader
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment