quarto: fix passthru tests on darwin

This commit is contained in:
Weijia Wang 2023-10-07 00:17:57 +02:00
parent ce5371f719
commit c7fc9de18b

View file

@ -13,6 +13,7 @@
, python3 , python3
, quarto , quarto
, extraPythonPackages ? ps: with ps; [] , extraPythonPackages ? ps: with ps; []
, sysctl
}: }:
stdenv.mkDerivation (final: { stdenv.mkDerivation (final: {
@ -64,7 +65,9 @@ stdenv.mkDerivation (final: {
''; '';
passthru.tests = { passthru.tests = {
quarto-check = runCommand "quarto-check" {} '' quarto-check = runCommand "quarto-check" {
nativeBuildInputs = lib.optionals stdenv.isDarwin [ sysctl ];
} ''
export HOME="$(mktemp -d)" export HOME="$(mktemp -d)"
${quarto}/bin/quarto check ${quarto}/bin/quarto check
touch $out touch $out