nixpkgs/pkgs/development/libraries/vulkan-loader/default.nix

39 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, python3, vulkan-headers, pkgconfig
, xlibsWrapper, libxcb, libXrandr, libXext, wayland, libGL_driver }:
let
2019-02-17 07:57:14 +00:00
version = "1.1.101.0";
in
2018-06-27 04:35:34 +01:00
assert version == vulkan-headers.version;
stdenv.mkDerivation rec {
name = "vulkan-loader-${version}";
inherit version;
2016-04-02 20:35:14 +01:00
src = fetchFromGitHub {
owner = "KhronosGroup";
2018-06-27 04:35:34 +01:00
repo = "Vulkan-Loader";
2019-02-17 07:57:14 +00:00
rev = "sdk-${version}";
sha256 = "0x891bha9mlsh4cvq59d1qnb4fnalwf6ml2b9y221cr7hikilamw";
2016-04-02 20:35:14 +01:00
};
2018-06-27 04:35:34 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake python3 xlibsWrapper libxcb libXrandr libXext wayland ];
enableParallelBuilding = true;
2016-04-02 20:35:14 +01:00
2016-08-31 21:57:37 +01:00
cmakeFlags = [
"-DFALLBACK_DATA_DIRS=${libGL_driver.driverLink}/share:/usr/local/share:/usr/share"
2018-06-27 04:35:34 +01:00
"-DVULKAN_HEADERS_INSTALL_DIR=${vulkan-headers}"
2016-08-31 21:57:37 +01:00
];
2018-06-27 04:35:34 +01:00
outputs = [ "out" "dev" ];
2016-04-02 20:35:14 +01:00
meta = with stdenv.lib; {
description = "LunarG Vulkan loader";
2018-06-27 21:12:57 +01:00
homepage = https://www.lunarg.com;
2016-04-02 20:35:14 +01:00
platforms = platforms.linux;
license = licenses.asl20;
2017-04-01 20:28:59 +01:00
maintainers = [ maintainers.ralith ];
2016-04-02 20:35:14 +01:00
};
}