2022-07-08 18:06:04 +02:00
|
|
|
{ stdenv, fetchFromGitHub, lib, zlib, pcre
|
2022-07-08 17:44:48 +02:00
|
|
|
, memorymappingHook, memstreamHook
|
2022-07-08 18:06:04 +02:00
|
|
|
, gnutls
|
2022-07-08 17:44:48 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tintin";
|
2022-07-08 18:06:04 +02:00
|
|
|
version = "2.02.20";
|
2022-07-08 17:44:48 +02:00
|
|
|
|
2022-07-08 18:06:04 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scandum";
|
|
|
|
repo = "tintin";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-H9Cjg/GkyV50pgewv77zOJ8/Op78P9sQmZ5LorO4L+A=";
|
2022-07-08 17:44:48 +02:00
|
|
|
};
|
|
|
|
|
2022-07-08 18:06:04 +02:00
|
|
|
buildInputs = [ zlib pcre gnutls ]
|
|
|
|
++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook memstreamHook ];
|
2022-07-08 17:44:48 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A free MUD client for macOS, Linux and Windows";
|
2022-07-08 18:06:04 +02:00
|
|
|
homepage = "https://tintin.mudhalla.net/index.php";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ abathur ];
|
2022-07-08 17:44:48 +02:00
|
|
|
mainProgram = "tt++";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|