summaryrefslogtreecommitdiff
path: root/pkgs/development/compilers/glslang/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/glslang/default.nix')
-rw-r--r--pkgs/development/compilers/glslang/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/compilers/glslang/default.nix b/pkgs/development/compilers/glslang/default.nix
new file mode 100644
index 000000000000..63b4b4c2c4f3
--- /dev/null
+++ b/pkgs/development/compilers/glslang/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchFromGitHub, cmake, bison }:
+
+stdenv.mkDerivation rec {
+ name = "glslang-git-${version}";
+ version = "2016-08-26";
+
+ # `vulkan-loader` requires a specific version of `glslang` as specified in
+ # `<vulkan-loader-repo>/glslang_revision`.
+ src = fetchFromGitHub {
+ owner = "KhronosGroup";
+ repo = "glslang";
+ rev = "81cd764b5ffc475bc73f1fb35f75fd1171bb2343";
+ sha256 = "1vfwl6lzkjh9nh29q32b7zca4q1abf3q4nqkahskijgznw5lr59g";
+ };
+
+ patches = [ ./install-headers.patch ];
+
+ buildInputs = [ cmake bison ];
+ enableParallelBuilding = true;
+
+ meta = with stdenv.lib; {
+ inherit (src.meta) homepage;
+ description = "Khronos reference front-end for GLSL and ESSL";
+ };
+}