about summary refs log tree commit diff
path: root/pkgs/games/manaplus/default.nix
blob: deb12d45ad4b795d953abf1a9f3757e3f2513584 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, lib, fetchurl, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer
, SDL2_net , SDL2_gfx, zlib, physfs, curl, libxml2, libpng, pkg-config
, libGL, autoreconfHook }:
stdenv.mkDerivation rec {
  pname = "manaplus";
  version = "2.1.3.17";

  src = fetchurl {
    url = "https://download.evolonline.org/manaplus/download/${version}/manaplus-${version}.tar.xz";
    sha256 = "sha256-6NFqxUjEAp7aiIScyTOFh2tT7PfuTCKH1vTgPpTm+j0=";
  };

  nativeBuildInputs = [
    autoreconfHook pkg-config
  ];

  buildInputs = [
    SDL2 SDL2_image SDL2_ttf SDL2_mixer SDL2_net SDL2_gfx zlib
    physfs curl libxml2 libpng libGL
  ];

  configureFlags = [ "--with-sdl2" "--without-dyecmd" ];

  enableParallelBuilding = true;

  meta = {
    maintainers = [ ];
    description = "Free OpenSource 2D MMORPG client";
    homepage = "https://manaplus.org/";
    license = lib.licenses.gpl2Plus;
    broken = stdenv.isDarwin;
  };
}