gifticlib: migrate to ctestCheckHook

This commit is contained in:
Sergei Zimmerman
2025-04-26 10:37:51 +00:00
parent 00b1aef96b
commit 400e50bf03

View File

@@ -6,6 +6,7 @@
expat,
nifticlib,
zlib,
ctestCheckHook,
}:
stdenv.mkDerivation {
@@ -33,11 +34,11 @@ stdenv.mkDerivation {
# without the test data, this is only a few basic tests
doCheck = !stdenv.hostPlatform.isDarwin;
checkPhase = ''
runHook preCheck
ctest -LE 'NEEDS_DATA'
runHook postCheck
'';
nativeCheckInputs = [ ctestCheckHook ];
checkFlags = [
"-LE"
"NEEDS_DATA"
];
meta = with lib; {
homepage = "https://www.nitrc.org/projects/gifti";