diff --git a/pkgs/by-name/yo/yofi/package.nix b/pkgs/by-name/yo/yofi/package.nix index 5fa38d280aef0..5494c8369d241 100644 --- a/pkgs/by-name/yo/yofi/package.nix +++ b/pkgs/by-name/yo/yofi/package.nix @@ -1,12 +1,14 @@ -{ lib -, fetchFromGitHub -, rustPlatform -, autoPatchelfHook -, fontconfig -, libxkbcommon -, pkg-config -, libgcc -, wayland +{ + lib, + fetchFromGitHub, + fetchpatch, + rustPlatform, + autoPatchelfHook, + fontconfig, + libxkbcommon, + pkg-config, + libgcc, + wayland, }: rustPlatform.buildRustPackage rec { pname = "yofi"; @@ -19,7 +21,16 @@ rustPlatform.buildRustPackage rec { hash = "sha256-cepAZyA4RBgqeF20g6YOlZTM0aRqErw17yuQ3U24UEg="; }; - cargoHash = "sha256-iSy/y1iwhR8x3wDIfazMeROSrJ8uRyA10hoNo6y2OQc="; + cargoPatches = [ + (fetchpatch { + name = "bump-time-1.80.0.patch"; + url = "https://github.com/l4l/yofi/commit/438e180bf5132d29a6846e830d7227cb996ade3e.patch"; + hash = "sha256-o/kwQRIG6MASGYnepb96pL1qfI+/CNTqc5maDPjSZXk="; + }) + ]; + + cargoHash = "sha256-GA6rFet0GIYFR/8WsWteMDwVRz/KyyxlFQOz/lNX7Rk="; + nativeBuildInputs = [ autoPatchelfHook pkg-config @@ -31,7 +42,10 @@ rustPlatform.buildRustPackage rec { ]; appendRunpaths = [ - (lib.makeLibraryPath [ fontconfig wayland ]) + (lib.makeLibraryPath [ + fontconfig + wayland + ]) ]; checkFlags = [