From 74008d82159b281a9d095a73a39189b8648068e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophane=20Hufschmitt?= Date: Mon, 11 Mar 2024 15:34:23 +0100 Subject: [PATCH] Run preInstallCheck even when not building Add `runHook preInstallCheck` to the overriden `installCheckPhase` used for the non-build case. In particular, this allow the fix from 2a3451077677787eae176c72717817ba80738a5e to also apply there. --- package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/package.nix b/package.nix index fa898e906..7d9a39771 100644 --- a/package.nix +++ b/package.nix @@ -343,6 +343,7 @@ in { # Work around weird bug where it doesn't think there is a Makefile. installCheckPhase = if (!doBuild && doInstallCheck) then '' + runHook preInstallCheck mkdir -p src/nix-channel make installcheck -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES '' else null;