nixpkgs/pkgs/development/compilers/glslang/default.nix

25 lines
666 B
Nix
Raw Normal View History

2016-04-02 19:34:50 +00:00
{ stdenv, fetchFromGitHub, cmake, bison }:
stdenv.mkDerivation rec {
name = "glslang-${version}";
version = "2016-07-16";
2016-04-02 19:34:50 +00:00
# `vulkan-loader` requires a specific version of `glslang` as specified in
# `<vulkan-loader-repo>/glslang_revision`.
2016-04-02 19:34:50 +00:00
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "glslang";
rev = "e4821e43c86d97bcf65fb07c1f70471b7102978d";
sha256 = "0vnfl8r5ssil1sffgk9sf7c7n5l3775pfizxgb1bcyvm84vw0pr3";
2016-04-02 19:34:50 +00:00
};
patches = [ ./install-headers.patch ];
buildInputs = [ cmake bison ];
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "Khronos reference front-end for GLSL and ESSL";
};
}