diff options
| author | leo60228 <leo@60228.dev> | 2022-11-29 17:02:13 -0500 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-12-05 13:53:08 +0000 |
| commit | 10e2b974e48931e3efb92236f9bf4485c85a9324 (patch) | |
| tree | 8d85885c248c8b1c665378de97ba043b3d44a271 | |
| parent | Merge pull request #204581 from NixOS/backport-203827-to-release-22.11 (diff) | |
| download | nixpkgs-10e2b974e48931e3efb92236f9bf4485c85a9324.tar.gz | |
pokefinder: init at 4.0.1
(cherry picked from commit f4340b1247a24df86e0f13ae03500a8c536f220d)
| -rw-r--r-- | pkgs/tools/games/pokefinder/cstddef.patch | 12 | ||||
| -rw-r--r-- | pkgs/tools/games/pokefinder/default.nix | 46 | ||||
| -rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/tools/games/pokefinder/cstddef.patch b/pkgs/tools/games/pokefinder/cstddef.patch new file mode 100644 index 000000000000..c74340b0d6df --- /dev/null +++ b/pkgs/tools/games/pokefinder/cstddef.patch @@ -0,0 +1,12 @@ +diff --git a/Source/Core/Util/EncounterSlot.cpp b/Source/Core/Util/EncounterSlot.cpp +index adddbdab..71c98e83 100644 +--- a/Source/Core/Util/EncounterSlot.cpp ++++ b/Source/Core/Util/EncounterSlot.cpp +@@ -20,6 +20,7 @@ + #include "EncounterSlot.hpp" + #include <Core/Enum/Encounter.hpp> + #include <array> ++#include <cstddef> + + namespace + { diff --git a/pkgs/tools/games/pokefinder/default.nix b/pkgs/tools/games/pokefinder/default.nix new file mode 100644 index 000000000000..547b0c47bc26 --- /dev/null +++ b/pkgs/tools/games/pokefinder/default.nix @@ -0,0 +1,46 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, qtbase +, qttools +, wrapQtAppsHook +, gitUpdater +}: + +stdenv.mkDerivation rec { + pname = "pokefinder"; + version = "4.0.1"; + + src = fetchFromGitHub { + owner = "Admiral-Fish"; + repo = "PokeFinder"; + rev = "v${version}"; + sha256 = "j7xgjNF8NWLFVPNItWcFM5WL8yPxgHxVX00x7lt45WI="; + fetchSubmodules = true; + }; + + patches = [ ./cstddef.patch ]; + + postPatch = '' + patchShebangs Source/Core/Resources/ + ''; + + installPhase = '' + install -D Source/Forms/PokeFinder $out/bin/PokeFinder + ''; + + nativeBuildInputs = [ cmake wrapQtAppsHook ]; + + buildInputs = [ qtbase qttools ]; + + passthru.updateScript = gitUpdater { }; + + meta = with lib; { + homepage = "https://github.com/Admiral-Fish/PokeFinder"; + description = "Cross platform Pokémon RNG tool"; + license = licenses.gpl3Only; + platforms = platforms.all; + maintainers = with maintainers; [ leo60228 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ffbe26bb94a8..a89e54b2f56e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31349,6 +31349,8 @@ with pkgs; poke = callPackage ../applications/editors/poke { }; + pokefinder = qt6Packages.callPackage ../tools/games/pokefinder { }; + pokemonsay = callPackage ../tools/misc/pokemonsay { }; polar-bookshelf = callPackage ../applications/misc/polar-bookshelf { }; |
