nixpkgs/pkgs/by-name/an/angband/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
952 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, ncurses5
, enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf
}:
2016-04-30 11:50:50 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "angband";
2023-08-20 12:50:50 +00:00
version = "4.2.5";
2016-04-30 23:18:15 +00:00
2016-04-30 11:50:50 +00:00
src = fetchFromGitHub {
owner = "angband";
repo = "angband";
rev = finalAttrs.version;
hash = "sha256-XH2FUTJJaH5TqV2UD1CKKAXE4CRAb6zfg1UQ79a15k0=";
2016-04-30 23:18:15 +00:00
};
nativeBuildInputs = [ autoreconfHook ];
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-04-30 23:18:15 +00:00
meta = with lib; {
homepage = "https://angband.github.io/angband";
2016-04-30 23:18:15 +00:00
description = "Single-player roguelike dungeon exploration game";
mainProgram = "angband";
2022-09-13 06:49:21 +00:00
maintainers = [ maintainers.kenran ];
2024-07-03 09:37:36 +00:00
license = licenses.gpl2Only;
platforms = platforms.unix;
2016-04-30 11:50:50 +00:00
};
})