tintin: 2.02.12 -> 2.02.20, adopt

- update version to match #165797
- change homepage to the independent project site (which
  sourceforge now redirects to)
- update source to github (linked from project site above)
- get rid of the "option" to exclude tlsSupport per PR feedback
This commit is contained in:
Travis A. Everett 2022-07-08 11:06:04 -05:00
parent 1029cad4d5
commit 3d55811e1c

View File

@ -1,24 +1,21 @@
{ stdenv, fetchurl, lib, zlib, pcre
{ stdenv, fetchFromGitHub, lib, zlib, pcre
, memorymappingHook, memstreamHook
, tlsSupport ? true, gnutls ? null
# ^ set { tlsSupport = false; } to reduce closure size by ~= 18.6 MB
, gnutls
}:
assert tlsSupport -> gnutls != null;
stdenv.mkDerivation rec {
pname = "tintin";
version = "2.02.12";
version = "2.02.20";
src = fetchurl {
url = "mirror://sourceforge/tintin/tintin-${version}.tar.gz";
sha256 = "sha256-tvn9TywefNyM/0Fy16gAFJYbA5Q4DO2RgiCdw014GgA=";
src = fetchFromGitHub {
owner = "scandum";
repo = "tintin";
rev = version;
hash = "sha256-H9Cjg/GkyV50pgewv77zOJ8/Op78P9sQmZ5LorO4L+A=";
};
nativeBuildInputs = lib.optional tlsSupport gnutls.dev;
buildInputs = [ zlib pcre ]
++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook memstreamHook ]
++ lib.optional tlsSupport gnutls;
buildInputs = [ zlib pcre gnutls ]
++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook memstreamHook ];
preConfigure = ''
cd src
@ -26,9 +23,9 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "A free MUD client for macOS, Linux and Windows";
homepage = "http://tintin.sourceforge.net";
license = licenses.gpl2;
maintainers = with maintainers; [ lovek323 ];
homepage = "https://tintin.mudhalla.net/index.php";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ abathur ];
mainProgram = "tt++";
platforms = platforms.unix;
};