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

27 lines
785 B
Nix
Raw Normal View History

2016-04-02 21:34:50 +02:00
{ stdenv, fetchFromGitHub, cmake, bison }:
stdenv.mkDerivation rec {
name = "glslang-git-${version}";
2017-12-13 20:18:11 +01:00
version = "2017-08-31";
2016-04-02 21:34:50 +02:00
# `vulkan-loader` requires a specific version of `glslang` as specified in
2017-04-01 21:28:59 +02:00
# `<vulkan-loader-repo>/external_revisions/glslang_revision`.
2016-04-02 21:34:50 +02:00
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "glslang";
2017-12-13 20:18:11 +01:00
rev = "3a21c880500eac21cdf79bef5b80f970a55ac6af";
sha256 = "1i15m17r0acmzjrkybris2rgw15il05a4w5h7vhhsiyngcvajcyn";
2016-04-02 21:34:50 +02:00
};
buildInputs = [ cmake bison ];
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";
license = licenses.asl20;
platforms = platforms.linux;
2017-04-01 21:28:59 +02:00
maintainers = [ maintainers.ralith ];
2016-04-02 21:34:50 +02:00
};
}