python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / games / angband / default.nix
blob6c34176be375c3222fdc706fd63b65c37c0e71cc
1 { lib, stdenv, fetchFromGitHub, autoreconfHook, ncurses5
2 , enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf
3 }:
5 stdenv.mkDerivation rec {
6   pname = "angband";
7   version = "4.2.4";
9   src = fetchFromGitHub {
10     owner = "angband";
11     repo = "angband";
12     rev = version;
13     sha256 = "sha256-Fp3BGCZYYdQCKXOLYsT4zzlibNRlbELZi26ofrbGGPQ=";
14   };
17   nativeBuildInputs = [ autoreconfHook ];
18   buildInputs = [ ncurses5 ]
19   ++ lib.optionals enableSdl2 [
20     SDL2
21     SDL2_image
22     SDL2_sound
23     SDL2_mixer
24     SDL2_ttf
25   ];
27   configureFlags = lib.optional enableSdl2 "--enable-sdl2";
29   installFlags = [ "bindir=$(out)/bin" ];
31   meta = with lib; {
32     homepage = "https://angband.github.io/angband";
33     description = "A single-player roguelike dungeon exploration game";
34     maintainers = [ maintainers.kenran ];
35     license = licenses.gpl2;
36   };