From 25ea71a00be2a8d18b1fc492910c4b0d9fb07766 Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 12 May 2023 09:11:03 -0400 Subject: [PATCH] nerdfix: 0.2.3 -> 0.3.0 Diff: https://github.com/loichyan/nerdfix/compare/v0.2.3...v0.3.0 Changelog: https://github.com/loichyan/nerdfix/blob/v0.3.0/CHANGELOG.md --- pkgs/tools/text/nerdfix/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/text/nerdfix/default.nix b/pkgs/tools/text/nerdfix/default.nix index 1ca648367e2a..dc70ef5c6944 100644 --- a/pkgs/tools/text/nerdfix/default.nix +++ b/pkgs/tools/text/nerdfix/default.nix @@ -1,20 +1,30 @@ { lib , rustPlatform , fetchFromGitHub +, fetchpatch }: rustPlatform.buildRustPackage rec { pname = "nerdfix"; - version = "0.2.3"; + version = "0.3.0"; src = fetchFromGitHub { owner = "loichyan"; repo = "nerdfix"; rev = "v${version}"; - hash = "sha256-2YmlwHTll5BI1mV9/zEw86g302U203vpSNrN6q0x+es="; + hash = "sha256-71P0ESPLTUq8z0mSU4v8KmS069DNUi5fPHz01Kg3aKg="; }; - cargoHash = "sha256-hza+Vuxg9iIcXaYlPuhxZsxJ3EnYrjHzdWthXyCnEYc="; + cargoHash = "sha256-XAelHpTVvz+jsDzfB+jsEuUdB0hN7c+hVDvCyOixx9E="; + + patches = [ + # fixes failing tests due to outdated snapshots + (fetchpatch { + name = "test-cli-udpate-stdout.patch"; + url = "https://github.com/loichyan/nerdfix/commit/4070f9e894337ca7d3f7641258428ad6d7cd6332.patch"; + hash = "sha256-oDuHKgoMcOaO1mtBbT1Uwn5ZUp/FvqsD4S+A1LdOhcE="; + }) + ]; meta = with lib; { description = "Nerdfix helps you to find/fix obsolete nerd font icons in your project";