lol
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 }:
4stdenv.mkDerivation rec {
5 pname = "manaplus";
6 version = "2.1.3.17";
7
8 src = fetchurl {
9 url = "https://download.evolonline.org/manaplus/download/${version}/manaplus-${version}.tar.xz";
10 sha256 = "sha256-6NFqxUjEAp7aiIScyTOFh2tT7PfuTCKH1vTgPpTm+j0=";
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}