Merge pull request #282484 from Nanotwerp/narsil-init

authored by Sandro and committed by GitHub 53741d33 31eea142

+57
+6
maintainers/maintainer-list.nix
··· 13127 13127 githubId = 1222539; 13128 13128 name = "Roman Naumann"; 13129 13129 }; 13130 + nanotwerp = { 13131 + email = "nanotwerp@gmail.com"; 13132 + github = "nanotwerp"; 13133 + githubId = 17240342; 13134 + name = "Nano Twerpus"; 13135 + }; 13130 13136 naphta = { 13131 13137 github = "naphta"; 13132 13138 githubId = 6709831;
+51
pkgs/by-name/na/narsil/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , ncurses 6 + , enableSdl2 ? true 7 + , SDL2 8 + , SDL2_image 9 + , SDL2_sound 10 + , SDL2_mixer 11 + , SDL2_ttf 12 + }: 13 + 14 + stdenv.mkDerivation rec { 15 + pname = "narsil"; 16 + version = "1.3.0-49-gc042b573a"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "NickMcConnell"; 20 + repo = "NarSil"; 21 + rev = version; 22 + hash = "sha256-lVGG4mppsnDmjMFO8YWsLEJEhI3T+QO3z/pCebe0Ai8="; 23 + }; 24 + 25 + nativeBuildInputs = [ autoreconfHook ]; 26 + buildInputs = [ ncurses ] 27 + ++ lib.optionals enableSdl2 [ 28 + SDL2 29 + SDL2_image 30 + SDL2_sound 31 + SDL2_mixer 32 + SDL2_ttf 33 + ]; 34 + 35 + enableParallelBuilding = true; 36 + 37 + configureFlags = lib.optional enableSdl2 "--enable-sdl2"; 38 + 39 + installFlags = [ "bindir=$(out)/bin" ]; 40 + 41 + meta = with lib; { 42 + homepage = "https://github.com/NickMcConnell/NarSil/"; 43 + description = "Unofficial rewrite of Sil, a roguelike influenced by Angband"; 44 + longDescription = '' 45 + NarSil attempts to be an almost-faithful recreation of Sil 1.3.0, 46 + but based on the codebase of modern Angband. 47 + ''; 48 + maintainers = [ maintainers.nanotwerp ]; 49 + license = licenses.gpl2; 50 + }; 51 + }