mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-19 20:09:01 +02:00
Merge pull request #282484 from Nanotwerp/narsil-init
This commit is contained in:
commit
53741d3303
|
@ -13127,6 +13127,12 @@
|
||||||
githubId = 1222539;
|
githubId = 1222539;
|
||||||
name = "Roman Naumann";
|
name = "Roman Naumann";
|
||||||
};
|
};
|
||||||
|
nanotwerp = {
|
||||||
|
email = "nanotwerp@gmail.com";
|
||||||
|
github = "nanotwerp";
|
||||||
|
githubId = 17240342;
|
||||||
|
name = "Nano Twerpus";
|
||||||
|
};
|
||||||
naphta = {
|
naphta = {
|
||||||
github = "naphta";
|
github = "naphta";
|
||||||
githubId = 6709831;
|
githubId = 6709831;
|
||||||
|
|
51
pkgs/by-name/na/narsil/package.nix
Normal file
51
pkgs/by-name/na/narsil/package.nix
Normal file
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue