quarto: add 'quarto-check' package test

This commit is contained in:
Minijackson 2023-09-03 08:58:32 +02:00
parent 145848a2d9
commit dfbdf97ac2
No known key found for this signature in database
GPG key ID: FEA888C9F5D64F62

View file

@ -9,7 +9,9 @@
, rPackages
, extraRPackages ? []
, makeWrapper
, runCommand
, python3
, quarto
, extraPythonPackages ? ps: with ps; []
}:
@ -61,6 +63,14 @@ stdenv.mkDerivation (final: {
runHook preInstall
'';
passthru.tests = {
quarto-check = runCommand "quarto-check" {} ''
export HOME="$(mktemp -d)"
${quarto}/bin/quarto check
touch $out
'';
};
meta = with lib; {
description = "Open-source scientific and technical publishing system built on Pandoc";
longDescription = ''