From 05136406e227288598854222388b4cf3de956c99 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 16 Feb 2025 19:52:52 +0900 Subject: [PATCH] dprint: 0.48.0 -> 0.49.0 Changelog: https://github.com/dprint/dprint/releases/tag/0.49.0 Diff: https://github.com/dprint/dprint/compare/0.48.0...0.49.0 Since this version, dprint uses deno in the checkPhase. --- pkgs/by-name/dp/dprint/package.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/dp/dprint/package.nix b/pkgs/by-name/dp/dprint/package.nix index 29d59be5f19a..5bcc34e6ba58 100644 --- a/pkgs/by-name/dp/dprint/package.nix +++ b/pkgs/by-name/dp/dprint/package.nix @@ -6,12 +6,13 @@ installShellFiles, testers, nix-update-script, + deno, dprint, }: rustPlatform.buildRustPackage rec { pname = "dprint"; - version = "0.48.0"; + version = "0.49.0"; # Prefer repository rather than crate here # - They have Cargo.lock in the repository @@ -20,16 +21,22 @@ rustPlatform.buildRustPackage rec { owner = "dprint"; repo = "dprint"; tag = version; - hash = "sha256-Zem37oHku90c7PDV8ep/7FN128eGRUvfIvRsaXa7X9g="; + hash = "sha256-IhxtHOf4IY95B7UQPSOyLj4LqvcD2I9RxEu8B+OjtCE="; }; useFetchCargoVendor = true; - cargoHash = "sha256-sSxtqg4VQhY84F8GZ0mbXzmsN2VFrr77z95LEly1ROo="; + cargoHash = "sha256-OdtUzlvbezeNk06AB6mzR3Rybh08asJJ3roNX0WOg54="; nativeBuildInputs = lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ installShellFiles ]; + nativeCheckInputs = [ + # Used in unsafe_ignore_cert test + # https://github.com/dprint/dprint/blob/00e8f5e9895147b20fe70a0e4e5437bd54d928e8/crates/dprint/src/utils/url.rs#L527 + deno + ]; + checkFlags = [ # Require creating directory and network access "--skip=plugins::cache_fs_locks::test"