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}";
|
2017-01-30 01:15:34 +00:00
|
|
|
version = "2016-12-21";
|
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";
|
2017-01-30 01:15:34 +00:00
|
|
|
rev = "807a0d9e2f4e176f75d62ac3c179c81800ec2608";
|
|
|
|
sha256 = "02jckgihqhagm73glipb4c6ri5fr3pnbxb5vrznn2vppyfdfghbj";
|
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";
|
2017-01-04 09:56:26 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
2016-04-02 20:34:50 +01:00
|
|
|
};
|
|
|
|
}
|