Merge pull request #107188 from expipiplus1/joe-dxc-darwin

Add Darwin support for directx-shader-compiler
This commit is contained in:
Pavol Rusnak
2020-12-24 14:38:13 +01:00
committed by GitHub
@@ -36,14 +36,14 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/lib $dev/include mkdir -p $out/bin $out/lib $dev/include
mv bin/dxc* $out/bin/ mv bin/dxc* $out/bin/
mv lib/libdxcompiler.so* $out/lib/ mv lib/libdxcompiler.so* lib/libdxcompiler.*dylib $out/lib/
cp -r $src/include/dxc $dev/include/ cp -r $src/include/dxc $dev/include/
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A compiler to compile HLSL programs into DXIL and SPIR-V"; description = "A compiler to compile HLSL programs into DXIL and SPIR-V";
homepage = "https://github.com/microsoft/DirectXShaderCompiler"; homepage = "https://github.com/microsoft/DirectXShaderCompiler";
platforms = platforms.linux; platforms = with platforms; linux ++ darwin;
license = licenses.ncsa; license = licenses.ncsa;
maintainers = with maintainers; [ expipiplus1 ]; maintainers = with maintainers; [ expipiplus1 ];
}; };