2016-04-02 21:34:50 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, bison }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-18 07:19:40 +02:00
|
|
|
name = "glslang-git-${version}";
|
2017-01-30 02:15:34 +01:00
|
|
|
version = "2016-12-21";
|
2016-04-02 21:34:50 +02:00
|
|
|
|
2016-08-31 12:22:01 +02:00
|
|
|
# `vulkan-loader` requires a specific version of `glslang` as specified in
|
|
|
|
# `<vulkan-loader-repo>/glslang_revision`.
|
2016-04-02 21:34:50 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "glslang";
|
2017-01-30 02:15:34 +01:00
|
|
|
rev = "807a0d9e2f4e176f75d62ac3c179c81800ec2608";
|
|
|
|
sha256 = "02jckgihqhagm73glipb4c6ri5fr3pnbxb5vrznn2vppyfdfghbj";
|
2016-04-02 21:34:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./install-headers.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ cmake bison ];
|
2016-09-18 07:19:40 +02:00
|
|
|
enableParallelBuilding = true;
|
2016-04-02 21:34:50 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Khronos reference front-end for GLSL and ESSL";
|
2017-01-04 10:56:26 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
2016-04-02 21:34:50 +02:00
|
|
|
};
|
|
|
|
}
|