1 { lib, stdenv, fetchFromGitHub, autoreconfHook, ncurses5
2 , enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf
5 stdenv.mkDerivation (finalAttrs: {
9 src = fetchFromGitHub {
12 rev = finalAttrs.version;
13 hash = "sha256-XH2FUTJJaH5TqV2UD1CKKAXE4CRAb6zfg1UQ79a15k0=";
16 nativeBuildInputs = [ autoreconfHook ];
17 buildInputs = [ ncurses5 ]
18 ++ lib.optionals enableSdl2 [
26 configureFlags = lib.optional enableSdl2 "--enable-sdl2";
28 installFlags = [ "bindir=$(out)/bin" ];
31 homepage = "https://angband.github.io/angband";
32 description = "Single-player roguelike dungeon exploration game";
33 mainProgram = "angband";
34 maintainers = [ maintainers.kenran ];
35 license = licenses.gpl2Only;
36 platforms = platforms.unix;