Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / angband / default.nix
blob0b24988c54f2124e829bf880ceecbba8b7fb3bb0
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.5";
9   src = fetchFromGitHub {
10     owner = "angband";
11     repo = "angband";
12     rev = version;
13     sha256 = "sha256-XH2FUTJJaH5TqV2UD1CKKAXE4CRAb6zfg1UQ79a15k0=";
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   };