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-04-01 20:28:59 +01:00
|
|
|
version = "2017-03-29";
|
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
|
2017-04-01 20:28:59 +01:00
|
|
|
# `<vulkan-loader-repo>/external_revisions/glslang_revision`.
|
2016-04-02 20:34:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "glslang";
|
2017-04-01 20:28:59 +01:00
|
|
|
rev = "714e58b2fc5a45714596e6aa2f6ac8f64260365c";
|
|
|
|
sha256 = "0ihnd0c4mr6ppbv9g7z1abrn8vx66simfzx5q48nqcpnywn35jxv";
|
2016-04-02 20:34:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2017-04-01 20:28:59 +01:00
|
|
|
maintainers = [ maintainers.ralith ];
|
2016-04-02 20:34:50 +01:00
|
|
|
};
|
|
|
|
}
|