2016-04-02 20:34:50 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, bison }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-18 06:19:40 +01:00
|
|
|
name = "glslang-git-${version}";
|
|
|
|
version = "2016-08-26";
|
2016-04-02 20:34:50 +01:00
|
|
|
|
2016-08-31 11:22:01 +01:00
|
|
|
# `vulkan-loader` requires a specific version of `glslang` as specified in
|
|
|
|
# `<vulkan-loader-repo>/glslang_revision`.
|
2016-04-02 20:34:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "glslang";
|
2016-09-18 06:19:40 +01:00
|
|
|
rev = "81cd764b5ffc475bc73f1fb35f75fd1171bb2343";
|
|
|
|
sha256 = "1vfwl6lzkjh9nh29q32b7zca4q1abf3q4nqkahskijgznw5lr59g";
|
2016-04-02 20:34:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./install-headers.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ cmake bison ];
|
2016-09-18 06:19:40 +01:00
|
|
|
enableParallelBuilding = true;
|
2016-04-02 20:34:50 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Khronos reference front-end for GLSL and ESSL";
|
|
|
|
};
|
|
|
|
}
|