Skip to content

Commit

Permalink
Run preInstallCheck even when not building
Browse files Browse the repository at this point in the history
Add `runHook preInstallCheck` to the overriden `installCheckPhase` used
for the non-build case.

In particular, this allow the fix from 2a34510
to also apply there.
  • Loading branch information
Théophane Hufschmitt committed Mar 11, 2024
1 parent 3539172 commit 74008d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 74008d8

Please sign in to comment.