From 6d216d585cb5a25ee578f2ec53eaf7966d732314 Mon Sep 17 00:00:00 2001 From: Benjamin Hipple Date: Wed, 30 Dec 2020 09:46:58 -0500 Subject: [PATCH] tbb: fix installPhase bug skipping hooks If you have a pre/post install hook in an overlay, it currently does not run. --- pkgs/development/libraries/tbb/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/tbb/default.nix b/pkgs/development/libraries/tbb/default.nix index 8f045802d3af..264b34125a87 100644 --- a/pkgs/development/libraries/tbb/default.nix +++ b/pkgs/development/libraries/tbb/default.nix @@ -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;