Unverified Commit 3e3d6306 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #326350 from x123/x123-update-narsil

narsil: 1.3.0-49-gc042b573a -> 1.3.0-84-g042c39e9c
parents 50773c2e 6e44ea53
Loading
Loading
Loading
Loading
+29 −24
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, ncurses
, enableSdl2 ? true
, SDL2
, SDL2_image
, SDL2_sound
, SDL2_mixer
, SDL2_ttf
{
  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-49-gc042b573a";
  version = "1.3.0-84-g042c39e9c";

  src = fetchFromGitHub {
    owner = "NickMcConnell";
    repo = "NarSil";
    rev = version;
    hash = "sha256-lVGG4mppsnDmjMFO8YWsLEJEhI3T+QO3z/pCebe0Ai8=";
    hash = "sha256-P+J+1KR5ZIUSXq8FXHGcIllGH3iEFlNniHWzlT4WZUM=";
  };

  passthru.updateScript = nix-update-script { };

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ ncurses ]
  buildInputs =
    [ ncurses ]
    ++ lib.optionals enableSdl2 [
      SDL2
      SDL2_image
@@ -38,15 +42,16 @@ stdenv.mkDerivation rec {

  installFlags = [ "bindir=$(out)/bin" ];

  meta = with lib; {
  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 = [ maintainers.nanotwerp ];
    license = licenses.gpl2;
    maintainers = with lib.maintainers; [ nanotwerp x123 ];
    license = lib.licenses.gpl2;
  };
}