Update pkgs/tools/typesetting/lowdown/default.nix

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
This commit is contained in:
Hlöðver Sigurðsson 2021-05-31 08:41:18 +02:00 committed by GitHub
parent 259bf50810
commit db89e667af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,12 @@ stdenv.mkDerivation rec {
patches = lib.optional (!stdenv.hostPlatform.isStatic) ./shared.patch;
doInstallCheck = stdenv.hostPlatform == stdenv.buildPlatform;
installCheckPhase = "echo '# TEST' > test.md; $out/bin/lowdown test.md";
installCheckPhase = ''
runHook preInstallCheck
echo '# TEST' > test.md
lowdown test.md
runHook postInstallCheck
'';
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
checkTarget = "regress";