diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-01-30 11:21:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 11:21:25 +0100 |
commit | 53741d33030a0bb3b1176c47593771442b482ae4 (patch) | |
tree | 64f60605df34d35ef10ff08b5d6d24f64b74c32c /pkgs/by-name/na | |
parent | 31eea14212826eb281faa394f5e3e428dae9f5bc (diff) | |
parent | 2451429628d675554abc3b10e9a537b135d19f4c (diff) |
Merge pull request #282484 from Nanotwerp/narsil-init
Diffstat (limited to 'pkgs/by-name/na')
-rw-r--r-- | pkgs/by-name/na/narsil/package.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/by-name/na/narsil/package.nix b/pkgs/by-name/na/narsil/package.nix new file mode 100644 index 0000000000000..ac00cf4820552 --- /dev/null +++ b/pkgs/by-name/na/narsil/package.nix @@ -0,0 +1,51 @@ +{ 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; + }; +} |