tbb: fix installPhase bug skipping hooks

If you have a pre/post install hook in an overlay, it currently does not run.
This commit is contained in:
Benjamin Hipple 2020-12-30 09:46:58 -05:00
parent 58f3c19b78
commit 6d216d585c

View file

@ -19,10 +19,14 @@ with stdenv.lib; stdenv.mkDerivation rec {
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl ./glibc-struct-mallinfo.patch;
installPhase = ''
runHook preInstall
mkdir -p $out/lib
cp "build/"*release*"/"*${stdenv.hostPlatform.extensions.sharedLibrary}* $out/lib/
mv include $out/
rm $out/include/index.html
runHook postInstall
'';
enableParallelBuilding = true;