3
0
Fork 0
forked from mirrors/nixpkgs

glslang: init at 20160727

This commit is contained in:
Joe Hermaszewski 2016-04-02 20:34:50 +01:00
parent dabcd7d4c8
commit e6cfc62063
3 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{ stdenv, fetchFromGitHub, cmake, bison }:
stdenv.mkDerivation rec {
name = "glslang-${version}";
version = "2016-07-27";
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "glslang";
rev = "8c8505c60454549181d78301933f3f108e2f55e6";
sha256 = "1219sq86pz6k8nzg9sqm34b0rdv6kkjirg54y6b2r5ak568r4kwx";
};
patches = [ ./install-headers.patch ];
buildInputs = [ cmake bison ];
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "Khronos reference front-end for GLSL and ESSL";
};
}

View file

@ -0,0 +1,26 @@
diff --git a/SPIRV/CMakeLists.txt b/SPIRV/CMakeLists.txt
index 50cda68..d4ba381 100755
--- a/SPIRV/CMakeLists.txt
+++ b/SPIRV/CMakeLists.txt
@@ -26,3 +26,8 @@ endif(WIN32)
install(TARGETS SPIRV
ARCHIVE DESTINATION lib)
+
+foreach(file ${HEADERS})
+ get_filename_component(dir ${file} DIRECTORY)
+ install(FILES ${file} DESTINATION include/SPIRV/${dir})
+endforeach()
diff --git a/glslang/CMakeLists.txt b/glslang/CMakeLists.txt
index 28f4742..5a25cbb 100644
--- a/glslang/CMakeLists.txt
+++ b/glslang/CMakeLists.txt
@@ -87,3 +87,8 @@ endif(WIN32)
install(TARGETS glslang
ARCHIVE DESTINATION lib)
+
+foreach(file ${HEADERS})
+ get_filename_component(dir ${file} DIRECTORY)
+ install(FILES ${file} DESTINATION include/glslang/${dir})
+endforeach()

View file

@ -4844,6 +4844,8 @@ in
dotnetPackages = recurseIntoAttrs (callPackage ./dotnet-packages.nix {});
glslang = callPackage ../development/compilers/glslang { };
go_bootstrap = callPackage ../development/compilers/go/1.4.nix {
inherit (darwin.apple_sdk.frameworks) Security;
};