writeShellApplication: run pre/postCheck hooks

This commit is contained in:
Bernardo Meurer
2021-11-08 09:33:38 -08:00
parent 949182a4a2
commit d8ec0eeab7
+2
View File
@@ -292,8 +292,10 @@ rec {
'';
checkPhase = if checkPhase == null then ''
runHook preCheck
${stdenv.shell} -n $out/bin/${name}
${shellcheck}/bin/shellcheck $out/bin/${name}
runHook postCheck
''
else checkPhase;
};