shaderc: Turn buildInputs to nativeBuildInputs

These are all build-time only native dependencies
This commit is contained in:
adisbladis 2019-01-19 11:38:02 +00:00
parent 1d55e50fe4
commit 731f0e06b1
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

View File

@ -42,7 +42,7 @@ in stdenv.mkDerivation rec {
ln -s ${spirv-headers} third_party/spirv-tools/external/spirv-headers ln -s ${spirv-headers} third_party/spirv-tools/external/spirv-headers
''; '';
buildInputs = [ cmake python ]; nativeBuildInputs = [ cmake python ];
postInstall = '' postInstall = ''
moveToOutput "lib/*.a" $static moveToOutput "lib/*.a" $static
@ -50,6 +50,8 @@ in stdenv.mkDerivation rec {
preConfigure = ''cmakeFlags="$cmakeFlags -DCMAKE_INSTALL_BINDIR=$bin/bin"''; preConfigure = ''cmakeFlags="$cmakeFlags -DCMAKE_INSTALL_BINDIR=$bin/bin"'';
enableParallelBuilding = true;
cmakeFlags = [ "-DSHADERC_SKIP_TESTS=ON" ]; cmakeFlags = [ "-DSHADERC_SKIP_TESTS=ON" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {