shaderc: Add multiple outputs

This commit is contained in:
adisbladis 2019-01-19 11:37:05 +00:00
parent ed1a8277ce
commit 1d55e50fe4
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

View File

@ -27,6 +27,8 @@ in stdenv.mkDerivation rec {
name = "shaderc-git-${version}";
version = "2018-06-01";
outputs = [ "out" "lib" "bin" "dev" "static" ];
src = fetchFromGitHub {
owner = "google";
repo = "shaderc";
@ -41,7 +43,12 @@ in stdenv.mkDerivation rec {
'';
buildInputs = [ cmake python ];
enableParallelBuilding = true;
postInstall = ''
moveToOutput "lib/*.a" $static
'';
preConfigure = ''cmakeFlags="$cmakeFlags -DCMAKE_INSTALL_BINDIR=$bin/bin"'';
cmakeFlags = [ "-DSHADERC_SKIP_TESTS=ON" ];