From 1db189b3dc4366d7b3edcb1d46ad1c238cf6c819 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 20 Mar 2023 21:08:38 +0100 Subject: flake: Run pre and post hooks in checkPhase --- flake.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 9a1ab86e..301b98ae 100644 --- a/flake.nix +++ b/flake.nix @@ -50,9 +50,11 @@ installTargets = [ "doc" "install" ]; checkPhase = '' - export LD_LIBRARY_PATH=$PWD - export DYLD_LIBRARY_PATH=$PWD - ctest -j$NIX_BUILD_CORES + runHook preCheck + env LD_LIBRARY_PATH=$PWD \ + DYLD_LIBRARY_PATH=$PWD \ + ctest -j$NIX_BUILD_CORES + runHook postCheck ''; doCheck = true; -- cgit v1.2.3