1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/graphics/vulkan-tools/default.nix

29 lines
882 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, python3, vulkan-loader, vulkan-headers,
glslang, pkgconfig, xlibsWrapper, libxcb, libXrandr, wayland }:
2018-06-27 04:36:15 +01:00
stdenv.mkDerivation rec {
pname = "vulkan-tools";
2020-01-29 07:11:09 +00:00
version = "1.2.131.1";
2018-06-27 04:36:15 +01:00
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "Vulkan-Tools";
rev = "sdk-${version}";
2020-01-29 07:11:09 +00:00
sha256 = "0ws47ansrr8cq4qjf6k4q0ygm9wwd3w7mhwqcl1qxms8lh5vmhfq";
2018-06-27 04:36:15 +01:00
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ python3 vulkan-headers vulkan-loader xlibsWrapper libxcb libXrandr wayland ];
2018-06-27 04:36:15 +01:00
enableParallelBuilding = true;
cmakeFlags = [ "-DBUILD_ICD=OFF" "-DGLSLANG_INSTALL_DIR=${glslang}" ];
meta = with stdenv.lib; {
description = "LunarG Vulkan loader";
homepage = "https://www.lunarg.com";
2018-06-27 04:36:15 +01:00
platforms = platforms.linux;
license = licenses.asl20;
maintainers = [ maintainers.ralith ];
};
}