Commit c7fc9de1 authored by Weijia Wang's avatar Weijia Wang
Browse files

quarto: fix passthru tests on darwin

parent ce5371f7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
, python3
, quarto
, extraPythonPackages ? ps: with ps; []
, sysctl
}:

stdenv.mkDerivation (final: {
@@ -64,7 +65,9 @@ stdenv.mkDerivation (final: {
  '';

  passthru.tests = {
    quarto-check = runCommand "quarto-check" {} ''
    quarto-check = runCommand "quarto-check" {
      nativeBuildInputs = lib.optionals stdenv.isDarwin [ sysctl ];
    } ''
      export HOME="$(mktemp -d)"
      ${quarto}/bin/quarto check
      touch $out