15 stdenv.mkDerivation (finalAttrs: {
16 pname = "nxengine-evo";
19 src = fetchFromGitHub {
21 repo = "nxengine-evo";
22 rev = "v${finalAttrs.version}";
23 hash = "sha256-krK2b1E5JUMxRoEWmb3HZMNSIHfUUGXSpyb4/Zdp+5A=";
27 # Fix building by adding SDL_MIXER to include path
29 url = "https://github.com/nxengine/nxengine-evo/commit/1890127ec4b4b5f8d6cb0fb30a41868e95659840.patch";
30 hash = "sha256-wlsIdN2RugOo94V3qj/AzYgrs2kf0i1Iw5zNOP8WQqI=";
34 url = "https://github.com/nxengine/nxengine-evo/commit/75b8b8e3b067fd354baa903332f2a3254d1cc017.patch";
35 hash = "sha256-fZVaZAOHgFoNakOR2MfsvRJjuLhbx+5id/bcN8w/WWo=";
39 url = "https://github.com/nxengine/nxengine-evo/commit/0076ebb11bcfec5dc5e2e923a50425f1a33a4133.patch";
40 hash = "sha256-8j3fFFw8DMljV7aAFXE+eA+vkbz1HdFTMAJmk3BRU04=";
59 # Allow finding game assets.
61 sed -i -e "s,/usr/share/,$out/share/," src/ResourceManager.cpp
68 mkdir -p $out/bin/ $out/share/nxengine/
69 install bin/* $out/bin/
71 cp -r ${finalAttrs.finalPackage.assets}/share/nxengine/data $out/share/nxengine/data
72 chmod -R a=r,a+X $out/share/nxengine/data
78 assets = callPackage ./assets.nix { };
82 homepage = "https://github.com/nxengine/nxengine-evo";
83 changelog = "https://github.com/nxengine/nxengine-evo/releases/tag/${finalAttrs.src.rev}";
84 description = "Complete open-source clone/rewrite of the masterpiece jump-and-run platformer Doukutsu Monogatari (also known as Cave Story)";
85 license = with lib.licenses; [
89 maintainers = with lib.maintainers; [ AndersonTorres ];
90 platforms = lib.platforms.linux;