mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
39 lines
948 B
Nix
39 lines
948 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, ncurses5
|
|
, enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "angband";
|
|
version = "4.2.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "angband";
|
|
repo = "angband";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-XH2FUTJJaH5TqV2UD1CKKAXE4CRAb6zfg1UQ79a15k0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ ncurses5 ]
|
|
++ lib.optionals enableSdl2 [
|
|
SDL2
|
|
SDL2_image
|
|
SDL2_sound
|
|
SDL2_mixer
|
|
SDL2_ttf
|
|
];
|
|
|
|
configureFlags = lib.optional enableSdl2 "--enable-sdl2";
|
|
|
|
installFlags = [ "bindir=$(out)/bin" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://angband.github.io/angband";
|
|
description = "Single-player roguelike dungeon exploration game";
|
|
mainProgram = "angband";
|
|
maintainers = [ maintainers.kenran ];
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|