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:
parent
90ff53d72c
commit
90b4a9b7d3
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue