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

+13 -16
+13 -16
pkgs/games/tintin/default.nix
··· 1 - { stdenv, fetchurl, lib, zlib, pcre 1 + { stdenv, fetchFromGitHub, lib, zlib, pcre 2 2 , memorymappingHook, memstreamHook 3 - , tlsSupport ? true, gnutls ? null 4 - # ^ set { tlsSupport = false; } to reduce closure size by ~= 18.6 MB 3 + , gnutls 5 4 }: 6 - 7 - assert tlsSupport -> gnutls != null; 8 5 9 6 stdenv.mkDerivation rec { 10 7 pname = "tintin"; 11 - version = "2.02.12"; 8 + version = "2.02.20"; 12 9 13 - src = fetchurl { 14 - url = "mirror://sourceforge/tintin/tintin-${version}.tar.gz"; 15 - sha256 = "sha256-tvn9TywefNyM/0Fy16gAFJYbA5Q4DO2RgiCdw014GgA="; 10 + src = fetchFromGitHub { 11 + owner = "scandum"; 12 + repo = "tintin"; 13 + rev = version; 14 + hash = "sha256-H9Cjg/GkyV50pgewv77zOJ8/Op78P9sQmZ5LorO4L+A="; 16 15 }; 17 16 18 - nativeBuildInputs = lib.optional tlsSupport gnutls.dev; 19 - buildInputs = [ zlib pcre ] 20 - ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook memstreamHook ] 21 - ++ lib.optional tlsSupport gnutls; 17 + buildInputs = [ zlib pcre gnutls ] 18 + ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook memstreamHook ]; 22 19 23 20 preConfigure = '' 24 21 cd src ··· 26 23 27 24 meta = with lib; { 28 25 description = "A free MUD client for macOS, Linux and Windows"; 29 - homepage = "http://tintin.sourceforge.net"; 30 - license = licenses.gpl2; 31 - maintainers = with maintainers; [ lovek323 ]; 26 + homepage = "https://tintin.mudhalla.net/index.php"; 27 + license = licenses.gpl3Plus; 28 + maintainers = with maintainers; [ abathur ]; 32 29 mainProgram = "tt++"; 33 30 platforms = platforms.unix; 34 31 };