leanify: Add simple check

Check that the executable is where it's expected and that it can be
executed. The command is expected to fail with `Map file error: Invalid argument`.
However, it returns with return value 0.
This commit is contained in:
Mynacol 2024-03-21 13:57:54 +01:00
parent afd3a57b83
commit 1a2fc30c43

View File

@ -24,6 +24,14 @@ stdenv.mkDerivation rec {
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
doCheck = true;
checkPhase = ''
runHook preCheck
./leanify /dev/null
runHook postCheck
'';
installPhase = ''
runHook preInstall