Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
951 B
Nix
49 lines
951 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
ncurses5,
|
|
enableSdl2 ? false,
|
|
SDL2,
|
|
SDL2_image,
|
|
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_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.gpl2Only;
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|