summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-03-20 21:08:38 +0100
committerMartin Michlmayr <tbm@cyrius.com>2023-03-21 10:01:48 +0800
commit1db189b3dc4366d7b3edcb1d46ad1c238cf6c819 (patch)
tree90a514b1433a207bff73e0582c38f112aa6ee7bf /flake.nix
parentc82646b568a3c312ccb2f0f5526a3167717004a5 (diff)
downloadfork-ledger-1db189b3dc4366d7b3edcb1d46ad1c238cf6c819.tar.gz
fork-ledger-1db189b3dc4366d7b3edcb1d46ad1c238cf6c819.tar.bz2
fork-ledger-1db189b3dc4366d7b3edcb1d46ad1c238cf6c819.zip
flake: Run pre and post hooks in checkPhase
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix8
1 files changed, 5 insertions, 3 deletions
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;