2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
2023-04-29 16:46:19 +00:00
|
|
|
, gtksourceview4
|
2024-10-11 05:15:48 +00:00
|
|
|
, webkitgtk_4_0
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-06-26 10:26:21 +00:00
|
|
|
, python3Packages
|
|
|
|
}:
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "skytemple";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "1.8.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SkyTemple";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "skytemple";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-RFLxDV/L6Qbz14KqIEcMX/EnirNUrHL0MW8v5Z8ByK0=";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
|
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.
|
2024-10-11 05:15:48 +00:00
|
|
|
webkitgtk_4_0
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2022-06-26 10:26:21 +00:00
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = 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
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "skytemple";
|
2021-06-04 09:07:49 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ marius851000 ];
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
}
|