2022-06-10 21:33:17 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, ncurses5
|
|
|
|
, enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf
|
|
|
|
}:
|
2016-04-30 12:50:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "angband";
|
2022-02-22 00:50:49 +00:00
|
|
|
version = "4.2.4";
|
2016-05-01 00:18:15 +01:00
|
|
|
|
2016-04-30 12:50:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "angband";
|
|
|
|
repo = "angband";
|
|
|
|
rev = version;
|
2022-02-22 00:50:49 +00:00
|
|
|
sha256 = "sha256-Fp3BGCZYYdQCKXOLYsT4zzlibNRlbELZi26ofrbGGPQ=";
|
2016-05-01 00:18:15 +01:00
|
|
|
};
|
|
|
|
|
2022-06-10 21:33:17 +01:00
|
|
|
|
2016-05-01 00:18:15 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2022-06-10 21:33:17 +01:00
|
|
|
buildInputs = [ ncurses5 ]
|
|
|
|
++ lib.optionals enableSdl2 [
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
SDL2_sound
|
|
|
|
SDL2_mixer
|
|
|
|
SDL2_ttf
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = lib.optional enableSdl2 "--enable-sdl2";
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "bindir=$(out)/bin" ];
|
2016-05-01 00:18:15 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-08-08 01:05:24 +01:00
|
|
|
homepage = "https://angband.github.io/angband";
|
2016-05-01 00:18:15 +01:00
|
|
|
description = "A single-player roguelike dungeon exploration game";
|
2022-09-13 07:49:21 +01:00
|
|
|
maintainers = [ maintainers.kenran ];
|
2016-05-01 00:18:15 +01:00
|
|
|
license = licenses.gpl2;
|
2016-04-30 12:50:50 +01:00
|
|
|
};
|
|
|
|
}
|