mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
shaderc-git: init at 2016-09-08
This commit is contained in:
parent
e0e27c83ab
commit
d608456005
31
pkgs/development/compilers/shaderc/default.nix
Normal file
31
pkgs/development/compilers/shaderc/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, glslang, spirv-tools, python }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "shaderc-git-${version}";
|
||||
version = "2016-09-08";
|
||||
|
||||
# `vulkan-loader` requires a specific version of `glslang` as specified in
|
||||
# `<vulkan-loader-repo>/glslang_revision`.
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "shaderc";
|
||||
rev = "e17bb8ba3b8b0b9142b788d988612a40541c54ce";
|
||||
sha256 = "17qfjqkz6j355qi130kixaz51svl09k9b5sfikksgnbmzglzcwki";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
cp -r ${spirv-tools.src} third_party/spirv-tools
|
||||
chmod -R +w third_party/spirv-tools
|
||||
ln -s ${spirv-tools.headers} third_party/spirv-tools/external/spirv-headers
|
||||
'';
|
||||
|
||||
buildInputs = [ cmake glslang python ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
cmakeFlags = [ "-DSHADERC_SKIP_TESTS=ON" "-DSHADERC_GLSLANG_DIR=${glslang.src}" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = "A collection of tools, libraries and tests for shader compilation.";
|
||||
};
|
||||
}
|
@ -11775,6 +11775,8 @@ in
|
||||
|
||||
sampradaya = callPackage ../data/fonts/sampradaya { };
|
||||
|
||||
shaderc = callPackage ../development/compilers/shaderc { };
|
||||
|
||||
shared_mime_info = callPackage ../data/misc/shared-mime-info { };
|
||||
|
||||
shared_desktop_ontologies = callPackage ../data/misc/shared-desktop-ontologies { };
|
||||
|
Loading…
Reference in New Issue
Block a user