lowdown: run tests when cross-compiling if possible

By setting do{Install,}Check to true statically, we'll let
stdenv.mkDerivation decide if it is possible or not via canExecute.
This commit is contained in:
sternenseemann 2023-04-30 13:01:42 +02:00
parent 90ff53d72c
commit 90b4a9b7d3

View file

@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
ln -s "$darwinDylib" "$lib/lib/liblowdown.dylib"
'';
doInstallCheck = stdenv.hostPlatform == stdenv.buildPlatform;
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
echo '# TEST' > test.md
@ -66,7 +66,7 @@ stdenv.mkDerivation rec {
runHook postInstallCheck
'';
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
doCheck = true;
checkTarget = "regress";
meta = with lib; {