2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
2023-04-29 16:46:19 +00:00
|
|
|
, gtksourceview4
|
2022-06-26 10:26:21 +00:00
|
|
|
, webkitgtk
|
|
|
|
, wrapGAppsHook
|
|
|
|
, python3Packages
|
|
|
|
}:
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "skytemple";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.6.0";
|
|
|
|
pyproject = true;
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SkyTemple";
|
|
|
|
repo = pname;
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-AQ8Wxks7TTHP2h9Tc1LYG4neQ2uWebFIFoCOd3A6KB8=";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2023-04-29 16:46:19 +00:00
|
|
|
gtksourceview4
|
2024-01-02 11:29:13 +00:00
|
|
|
# webkitgtk is used for rendering interactive statistics graph which
|
2021-06-28 23:13:55 +00:00
|
|
|
# can be seen by opening a ROM, entering Pokemon section, selecting
|
|
|
|
# any Pokemon, and clicking Stats and Moves tab.
|
|
|
|
webkitgtk
|
|
|
|
];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2022-06-26 10:26:21 +00:00
|
|
|
cairosvg
|
2021-06-04 09:07:49 +00:00
|
|
|
natsort
|
2022-06-26 10:26:21 +00:00
|
|
|
ndspy
|
2021-06-04 09:07:49 +00:00
|
|
|
packaging
|
|
|
|
pycairo
|
|
|
|
pygal
|
2022-04-27 09:35:20 +00:00
|
|
|
psutil
|
|
|
|
gbulb
|
2021-06-04 09:07:49 +00:00
|
|
|
pypresence
|
2022-04-27 09:35:20 +00:00
|
|
|
sentry-sdk
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools
|
|
|
|
skytemple-dtef
|
|
|
|
skytemple-eventserver
|
|
|
|
skytemple-files
|
|
|
|
skytemple-icons
|
|
|
|
skytemple-ssb-debugger
|
2022-06-26 10:26:21 +00:00
|
|
|
tilequant
|
2024-01-02 11:29:13 +00:00
|
|
|
wheel
|
2023-04-29 16:46:19 +00:00
|
|
|
] ++ skytemple-files.optional-dependencies.spritecollab;
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
doCheck = false; # there are no tests
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 org.skytemple.SkyTemple.desktop -t $out/share/applications
|
|
|
|
install -Dm444 installer/skytemple.ico $out/share/icons/hicolor/256x256/apps/org.skytemple.SkyTemple.ico
|
|
|
|
'';
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/SkyTemple/skytemple";
|
|
|
|
description = "ROM hacking tool for Pokémon Mystery Dungeon Explorers of Sky";
|
|
|
|
license = licenses.gpl3Plus;
|
2021-09-23 15:35:13 +00:00
|
|
|
maintainers = with maintainers; [ xfix marius851000 ];
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
}
|