From 1db7d636a4648fa78dc5ab12c6dd0323fddc4c6e Mon Sep 17 00:00:00 2001 From: leo60228 Date: Sun, 18 Jan 2026 17:24:04 -0500 Subject: [PATCH] pokefinder: 4.2.1 -> 4.3.1 --- pkgs/by-name/po/pokefinder/package.nix | 16 ++++++---------- .../po/pokefinder/set-desktop-file-name.patch | 6 +++--- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/po/pokefinder/package.nix b/pkgs/by-name/po/pokefinder/package.nix index 3c30de2aab9e..931aa676ce42 100644 --- a/pkgs/by-name/po/pokefinder/package.nix +++ b/pkgs/by-name/po/pokefinder/package.nix @@ -13,13 +13,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "pokefinder"; - version = "4.2.1"; + version = "4.3.1"; src = fetchFromGitHub { owner = "Admiral-Fish"; repo = "PokeFinder"; rev = "v${finalAttrs.version}"; - sha256 = "wjHqox0Vxc73/UTcE7LSo/cG9o4eOqkcjTIW99BxsAc="; + hash = "sha256-tItPvA0f2HnY7SUSnb7A5jGwbRs7eQoS4vibBomZ9pw="; fetchSubmodules = true; }; @@ -27,20 +27,16 @@ stdenv.mkDerivation (finalAttrs: { ./set-desktop-file-name.patch ]; - postPatch = '' - patchShebangs Source/Core/Resources/ - ''; - installPhase = '' runHook preInstall '' + lib.optionalString (stdenv.hostPlatform.isDarwin) '' mkdir -p $out/Applications - cp -R Source/PokeFinder.app $out/Applications + cp -R PokeFinder.app $out/Applications '' + lib.optionalString (!stdenv.hostPlatform.isDarwin) '' - install -D Source/PokeFinder $out/bin/PokeFinder - icoFileToHiColorTheme $src/Source/Form/Images/pokefinder.ico pokefinder $out + install -D PokeFinder $out/bin/PokeFinder + icoFileToHiColorTheme $src/Form/Images/pokefinder.ico pokefinder $out '' + '' runHook postInstall @@ -49,7 +45,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake qt6.wrapQtAppsHook - python3 + (python3.withPackages (ps: [ ps.zstandard ])) ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ copyDesktopItems diff --git a/pkgs/by-name/po/pokefinder/set-desktop-file-name.patch b/pkgs/by-name/po/pokefinder/set-desktop-file-name.patch index e22046f6fd0a..bbb17f7fd227 100644 --- a/pkgs/by-name/po/pokefinder/set-desktop-file-name.patch +++ b/pkgs/by-name/po/pokefinder/set-desktop-file-name.patch @@ -1,7 +1,7 @@ -diff --git a/Source/main.cpp b/Source/main.cpp +diff --git a/main.cpp b/main.cpp index 3e58a381..2e7e4a86 100644 ---- a/Source/main.cpp -+++ b/Source/main.cpp +--- a/main.cpp ++++ b/main.cpp @@ -69,6 +69,7 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv);