diff options
Diffstat (limited to 'pkgs/development/libraries/quarto/default.nix')
-rw-r--r-- | pkgs/development/libraries/quarto/default.nix | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/pkgs/development/libraries/quarto/default.nix b/pkgs/development/libraries/quarto/default.nix index 11350128b4aa..acdb76cc52b2 100644 --- a/pkgs/development/libraries/quarto/default.nix +++ b/pkgs/development/libraries/quarto/default.nix @@ -13,28 +13,27 @@ , runCommand , python3 , quarto -, extraPythonPackages ? ps: with ps; [] +, extraPythonPackages ? ps: [] , sysctl }: stdenv.mkDerivation (final: { pname = "quarto"; - version = "1.5.57"; + version = "1.6.33"; + src = fetchurl { url = "https://github.com/quarto-dev/quarto-cli/releases/download/v${final.version}/quarto-${final.version}-linux-amd64.tar.gz"; - sha256 = "sha256-ZBjv/Z98il8EMZe88fMKSi1YjeOZ8jEh7OxYDKUTMpY="; + hash = "sha256-0qCQswtBC8R1Q7pHLhJtqCncllqgXo1t9pG97VwCtAI="; }; + patches = [ + ./deno2.patch + ]; + nativeBuildInputs = [ makeWrapper ]; - postPatch = '' - # Compat for Deno >=1.26 - substituteInPlace bin/quarto.js \ - --replace-fail ']))?.trim();' ']))?.trim().split(" ")[0];' - ''; - dontStrip = true; preFixup = '' @@ -63,7 +62,7 @@ stdenv.mkDerivation (final: { passthru.tests = { quarto-check = runCommand "quarto-check" { - nativeBuildInputs = lib.optionals stdenv.isDarwin [ sysctl ]; + nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ sysctl ]; } '' export HOME="$(mktemp -d)" ${quarto}/bin/quarto check |