2022-06-16 17:23:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, ncurses5
|
|
|
|
, enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "angband";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "4.2.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angband";
|
|
|
|
repo = "angband";
|
|
|
|
rev = version;
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-Fp3BGCZYYdQCKXOLYsT4zzlibNRlbELZi26ofrbGGPQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2022-06-16 17:23:12 +00:00
|
|
|
buildInputs = [ ncurses5 ]
|
|
|
|
++ lib.optionals enableSdl2 [
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
SDL2_sound
|
|
|
|
SDL2_mixer
|
|
|
|
SDL2_ttf
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = lib.optional enableSdl2 "--enable-sdl2";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installFlags = [ "bindir=$(out)/bin" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-08-08 23:34:03 +00:00
|
|
|
homepage = "https://angband.github.io/angband";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A single-player roguelike dungeon exploration game";
|
|
|
|
maintainers = [ maintainers.chattered ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|