3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #177214 from kenranunderscore/angband-with-sdl2

angband: optionally enable SDL2 frontend
This commit is contained in:
Sandro 2022-06-11 13:25:09 +02:00 committed by GitHub
commit aee69b6368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,6 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, ncurses5 }: { lib, stdenv, fetchFromGitHub, autoreconfHook, ncurses5
, enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "angband"; pname = "angband";
@ -11,8 +13,19 @@ stdenv.mkDerivation rec {
sha256 = "sha256-Fp3BGCZYYdQCKXOLYsT4zzlibNRlbELZi26ofrbGGPQ="; sha256 = "sha256-Fp3BGCZYYdQCKXOLYsT4zzlibNRlbELZi26ofrbGGPQ=";
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ncurses5 ]; buildInputs = [ ncurses5 ]
++ lib.optionals enableSdl2 [
SDL2
SDL2_image
SDL2_sound
SDL2_mixer
SDL2_ttf
];
configureFlags = lib.optional enableSdl2 "--enable-sdl2";
installFlags = [ "bindir=$(out)/bin" ]; installFlags = [ "bindir=$(out)/bin" ];
meta = with lib; { meta = with lib; {