nixpkgs/pkgs/by-name/na/narsil/package.nix
Nanotwerp 2451429628 narsil: init at 1.3.0-49-gc042b573a
This package is being initialized at a specific rev due to the older 1.3.0 release executable being named "angband" instead of "narsil" in $out/bin/.

narsil: replace sha256 with hash

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

narsil: add more verbose description

narsil: make description even more verbose

narsil: add a longDescription

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2024-01-24 13:17:47 -05:00

51 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, ncurses
, enableSdl2 ? true
, SDL2
, SDL2_image
, SDL2_sound
, SDL2_mixer
, SDL2_ttf
}:
stdenv.mkDerivation rec {
pname = "narsil";
version = "1.3.0-49-gc042b573a";
src = fetchFromGitHub {
owner = "NickMcConnell";
repo = "NarSil";
rev = version;
hash = "sha256-lVGG4mppsnDmjMFO8YWsLEJEhI3T+QO3z/pCebe0Ai8=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ncurses ]
++ lib.optionals enableSdl2 [
SDL2
SDL2_image
SDL2_sound
SDL2_mixer
SDL2_ttf
];
enableParallelBuilding = true;
configureFlags = lib.optional enableSdl2 "--enable-sdl2";
installFlags = [ "bindir=$(out)/bin" ];
meta = with lib; {
homepage = "https://github.com/NickMcConnell/NarSil/";
description = "Unofficial rewrite of Sil, a roguelike influenced by Angband";
longDescription = ''
NarSil attempts to be an almost-faithful recreation of Sil 1.3.0,
but based on the codebase of modern Angband.
'';
maintainers = [ maintainers.nanotwerp ];
license = licenses.gpl2;
};
}