18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
23 owner = "Admiral-Fish";
26 sha256 = "R0FrRRQRe0tWrHUoU4PPwOgIsltUEImEMTXL79ISfRE=";
27 fetchSubmodules = true;
31 ./set-desktop-file-name.patch
32 # fix compatibility with our libstdc++
33 # https://github.com/Admiral-Fish/PokeFinder/pull/392
35 url = "https://github.com/Admiral-Fish/PokeFinder/commit/2cb1b049cabdf0d1b32c8cf29bf6c9d9c5c55cb0.patch";
36 hash = "sha256-F/w7ydsZ5tZParMWi33W3Tv8A6LLiJt4dAoCrs40DIo=";
41 patchShebangs Source/Core/Resources/
48 + lib.optionalString (stdenv.hostPlatform.isDarwin) ''
49 mkdir -p $out/Applications
50 cp -R Source/PokeFinder.app $out/Applications
52 + lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
53 install -D Source/PokeFinder $out/bin/PokeFinder
54 mkdir -p $out/share/pixmaps
55 convert "$src/Source/Form/Images/pokefinder.ico[-1]" $out/share/pixmaps/pokefinder.png
67 ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
77 comment = "Cross platform Pokémon RNG tool";
78 desktopName = "PokéFinder";
79 categories = [ "Utility" ];
86 ] ++ lib.optionals stdenv.hostPlatform.isLinux [ qtwayland ];
88 passthru.updateScript = gitUpdater {
93 homepage = "https://github.com/Admiral-Fish/PokeFinder";
94 description = "Cross platform Pokémon RNG tool";
95 mainProgram = "PokeFinder";
96 license = licenses.gpl3Only;
97 platforms = platforms.all;
98 maintainers = with maintainers; [ leo60228 ];