11 stdenv.mkDerivation rec {
12 pname = "nxengine-evo";
14 src = fetchFromGitHub {
16 repo = "nxengine-evo";
18 sha256 = "sha256-krK2b1E5JUMxRoEWmb3HZMNSIHfUUGXSpyb4/Zdp+5A=";
21 url = "https://github.com/nxengine/nxengine-evo/releases/download/v${version}/NXEngine-v${version}-Linux.tar.xz";
22 sha256 = "1b5hkmsrrhnjjf825ri6n62kb3fldwl7v5f1cqvqyv47zv15g5gy";
27 url = "https://github.com/nxengine/nxengine-evo/commit/1890127ec4b4b5f8d6cb0fb30a41868e95659840.patch";
28 sha256 = "18j22vzkikcwqd42vlhzd6rjp26dq0zslxw5yyl07flivms0hny2";
31 url = "https://github.com/nxengine/nxengine-evo/commit/75b8b8e3b067fd354baa903332f2a3254d1cc017.patch";
32 sha256 = "0sjr7z63gp7nfxifxisvp2w664mxxk3xi4a3d86mm0470dj5m5bx";
36 nativeBuildInputs = [ cmake ];
44 # Allow finding game assets.
46 sed -i -e "s,/usr/share/,$out/share/," src/ResourceManager.cpp
52 mkdir -p $out/bin/ $out/share/nxengine/
53 install bin/* $out/bin/
54 cp -r NXEngine-evo-${version}-Linux/data/ $out/share/nxengine/data
55 chmod -R a=r,a+X $out/share/nxengine/data
59 description = "A complete open-source clone/rewrite of the masterpiece jump-and-run platformer Doukutsu Monogatari (also known as Cave Story)";
60 license = with lib.licenses; [
62 unfreeRedistributable # Game assets, freeware
64 maintainers = [ lib.maintainers.scubed2 ];
65 homepage = "https://github.com/nxengine/nxengine-evo";
66 platforms = lib.platforms.linux;