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

39 lines
1016 B
Nix
Raw Normal View History

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