@@ -0,0 +1,32 @@
1+{ stdenv, lib, fetchurl, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer
2+, SDL2_net , SDL2_gfx, zlib, physfs, curl, libxml2, libpng, pkg-config
3+, libGL, autoreconfHook }:
4+stdenv.mkDerivation rec {
5+ pname = "manaplus";
6+ version = "1.9.3.23";
7+
8+ src = fetchurl {
9+ url = "https://download.evolonline.org/manaplus/download/${version}/manaplus-${version}.tar.xz";
10+ sha256 = "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz";
11+ };
12+
13+ nativeBuildInputs = [
14+ autoreconfHook pkg-config
15+ ];
16+
17+ buildInputs = [
18+ SDL2 SDL2_image SDL2_ttf SDL2_mixer SDL2_net SDL2_gfx zlib
19+ physfs curl libxml2 libpng libGL
20+ ];
21+
22+ configureFlags = [ "--with-sdl2" "--without-dyecmd" ];
23+
24+ enableParallelBuilding = true;
25+
26+ meta = {
27+ maintainers = [ lib.maintainers.lheckemann ];
28+ description = "A free OpenSource 2D MMORPG client";
29+ homepage = "https://manaplus.org/";
30+ license = lib.licenses.gpl2;
31+ };
32+}