mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 03:17:34 +00:00
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:
parent
afd3a57b83
commit
1a2fc30c43
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user