1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
nix-update-script,
ncurses,
enableSdl2 ? true,
SDL2,
SDL2_image,
SDL2_sound,
SDL2_mixer,
SDL2_ttf,
}:
stdenv.mkDerivation rec {
pname = "narsil";
version = "1.3.0-85-g68f1491ca";
src = fetchFromGitHub {
owner = "NickMcConnell";
repo = "NarSil";
rev = version;
hash = "sha256-uiueTkfucYcK6BQ0WpXp8Sye7E0D1uxd/InowWznBjY=";
};
passthru.updateScript = nix-update-script { };
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 = {
homepage = "https://github.com/NickMcConnell/NarSil/";
description = "Unofficial rewrite of Sil, a roguelike influenced by Angband";
mainProgram = "narsil";
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.
'';
maintainers = with lib.maintainers; [ nanotwerp x123 ];
license = lib.licenses.gpl2;
};
}
|