From 00ef19af0feade355920c020ddb04ffca16ea456 Mon Sep 17 00:00:00 2001 From: Defelo Date: Sun, 8 Jun 2025 13:00:04 +0200 Subject: [PATCH] tokei: fix failed downcast to NumberFormatStyle when parsing argument (cherry picked from commit e5681b84f595f3e4192460fac4ea5fdc9ee76296) --- pkgs/by-name/to/tokei/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/to/tokei/package.nix b/pkgs/by-name/to/tokei/package.nix index 42e0ba450c75..a19d2761feae 100644 --- a/pkgs/by-name/to/tokei/package.nix +++ b/pkgs/by-name/to/tokei/package.nix @@ -3,6 +3,7 @@ stdenv, fetchFromGitHub, rustPlatform, + fetchpatch2, libiconv, zlib, }: @@ -18,6 +19,14 @@ rustPlatform.buildRustPackage rec { sha256 = "sha256-jCI9VM3y76RI65E5UGuAPuPkDRTMyi+ydx64JWHcGfE="; }; + patches = [ + (fetchpatch2 { + # https://github.com/XAMPPRocky/tokei/pull/1209 + url = "https://github.com/XAMPPRocky/tokei/commit/ce8d8535276a2e41878981a8199232986ab96c6b.patch"; + hash = "sha256-1tb+WmjVsTxs8Awf1mbKOBIhJ3ddoOT8ZjBKA2BMocg="; + }) + ]; + useFetchCargoVendor = true; cargoHash = "sha256-LzlyrKaRjUo6JnVLQnHidtI4OWa+GrhAc4D8RkL+nmQ=";