figsoda 2023-05-14 16:45:41 -04:00
parent b753135b53
commit 179ba02c2b

View File

@ -1,30 +1,20 @@
{ lib { lib
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "nerdfix"; pname = "nerdfix";
version = "0.3.0"; version = "0.3.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "loichyan"; owner = "loichyan";
repo = "nerdfix"; repo = "nerdfix";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-71P0ESPLTUq8z0mSU4v8KmS069DNUi5fPHz01Kg3aKg="; hash = "sha256-cqTaup/MrtLcBIoY+1vQLLlU+Cmu3iODH4jmZImjGrg=";
}; };
cargoHash = "sha256-XAelHpTVvz+jsDzfB+jsEuUdB0hN7c+hVDvCyOixx9E="; cargoHash = "sha256-V/M70ARqOyN0f/uudWPHc4bGc3WXK3PpcM8r2MBEWAs=";
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; { meta = with lib; {
description = "Nerdfix helps you to find/fix obsolete nerd font icons in your project"; description = "Nerdfix helps you to find/fix obsolete nerd font icons in your project";