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