nixpkgs/pkgs/by-name/na/narsil/package.nix

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

58 lines
1.3 KiB
Nix
Raw Normal View History

2024-07-11 16:30:00 +00:00
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
2024-07-11 16:58:09 +00:00
nix-update-script,
2024-07-11 16:30:00 +00:00
ncurses,
enableSdl2 ? true,
SDL2,
SDL2_image,
SDL2_sound,
SDL2_mixer,
SDL2_ttf,
}:
stdenv.mkDerivation rec {
pname = "narsil";
version = "1.3.0-350-ga51756908";
src = fetchFromGitHub {
owner = "NickMcConnell";
repo = "NarSil";
rev = version;
hash = "sha256-kpfgM+FpvSZLrgu6Smbjlr8QfI400+85wqUR+l0AJkA=";
};
2024-10-21 12:00:32 +00:00
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch=main" ]; };
2024-07-11 16:58:09 +00:00
nativeBuildInputs = [ autoreconfHook ];
2024-07-11 16:30:00 +00:00
buildInputs =
[ ncurses ]
++ lib.optionals enableSdl2 [
2024-07-11 16:30:00 +00:00
SDL2
SDL2_image
SDL2_sound
SDL2_mixer
SDL2_ttf
];
enableParallelBuilding = true;
configureFlags = lib.optional enableSdl2 "--enable-sdl2";
installFlags = [ "bindir=$(out)/bin" ];
2024-07-11 16:30:00 +00:00
meta = {
homepage = "https://github.com/NickMcConnell/NarSil/";
description = "Unofficial rewrite of Sil, a roguelike influenced by Angband";
mainProgram = "narsil";
2024-07-11 16:31:29 +00:00
changelog = "https://github.com/NickMcConnell/NarSil/releases/tag/${version}";
longDescription = ''
NarSil attempts to be an almost-faithful recreation of Sil 1.3.0,
but based on the codebase of modern Angband.
'';
2024-07-11 16:33:55 +00:00
maintainers = with lib.maintainers; [ nanotwerp x123 ];
2024-07-11 16:30:00 +00:00
license = lib.licenses.gpl2;
};
}