nixpkgs/pkgs/games/tinyfugue/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.4 KiB
Nix
Raw Normal View History

2024-06-22 09:51:40 +00:00
{
lib,
stdenv,
fetchurl,
ncurses,
zlib,
openssl,
sslSupport ? true,
2016-10-04 21:46:26 +00:00
}:
assert sslSupport -> openssl != null;
let
inherit (lib)
licenses
maintainers
optional
platforms
;
in
2016-10-04 21:46:26 +00:00
stdenv.mkDerivation rec {
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";
};
2024-06-22 09:51:40 +00:00
patches = [
./001-darwin-fixes.patch
];
2016-10-04 21:46:26 +00:00
configureFlags = optional (!sslSupport) "--disable-ssl";
2024-06-22 09:51:40 +00:00
buildInputs = [
ncurses
zlib
] ++ optional sslSupport openssl;
2016-10-04 21:46:26 +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
env.NIX_CFLAGS_COMPILE = "-fcommon";
2016-10-04 21:46:26 +00:00
meta = {
homepage = "https://tinyfugue.sourceforge.net/";
2016-10-04 21:46:26 +00:00
description = "Terminal UI, screen-oriented MUD client";
mainProgram = "tf";
2016-10-04 21:46:26 +00:00
longDescription = ''
TinyFugue, aka "tf", is a flexible, screen-oriented MUD client, for use
with any type of text MUD.
'';
2024-07-03 09:37:36 +00:00
license = licenses.gpl2Only;
2024-06-22 09:51:40 +00:00
platforms = platforms.linux ++ platforms.darwin;
2016-10-04 21:46:26 +00:00
maintainers = [ maintainers.KibaFox ];
};
}