2021-01-15 04:31:39 +00:00
|
|
|
{ lib, stdenv, fetchurl, ncurses, zlib
|
2016-10-04 21:46:26 +00:00
|
|
|
, openssl ? null
|
|
|
|
, sslSupport ? true
|
|
|
|
}:
|
|
|
|
|
2021-01-15 04:31:39 +00:00
|
|
|
with lib;
|
2016-10-04 21:46:26 +00:00
|
|
|
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tinyfugue";
|
2016-10-04 21:46:26 +00:00
|
|
|
version = "50b8";
|
|
|
|
verUrl = "5.0%20beta%208";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/tinyfugue/tinyfugue/${verUrl}/tf-${version}.tar.gz";
|
|
|
|
sha256 = "12fra2fdwqj6ilv9wdkc33rkj343rdcf5jyff4yiwywlrwaa2l1p";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = optional (!sslSupport) "--disable-ssl";
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ ncurses zlib ]
|
|
|
|
++ optional sslSupport openssl;
|
|
|
|
|
2022-05-29 21:06:07 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: world.o:/build/tf-50b8/src/socket.h:24: multiple definition of
|
|
|
|
# `world_decl'; command.o:/build/tf-50b8/src/socket.h:24: first defined here
|
2023-02-20 15:17:34 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-05-29 21:06:07 +00:00
|
|
|
|
2016-10-04 21:46:26 +00:00
|
|
|
meta = {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://tinyfugue.sourceforge.net/";
|
2016-10-04 21:46:26 +00:00
|
|
|
description = "A terminal UI, screen-oriented MUD client";
|
|
|
|
longDescription = ''
|
|
|
|
TinyFugue, aka "tf", is a flexible, screen-oriented MUD client, for use
|
|
|
|
with any type of text MUD.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2;
|
2018-11-25 20:51:51 +00:00
|
|
|
platforms = platforms.linux;
|
2016-10-04 21:46:26 +00:00
|
|
|
maintainers = [ maintainers.KibaFox ];
|
|
|
|
};
|
|
|
|
}
|