ldmud: 3.6.7 -> 3.6.8 (#424458)

authored by Felix Bargfeldt and committed by GitHub 0399d49b 7f7f6743

+16 -30
-18
pkgs/by-name/ld/ldmud/libxml2-2.12.0-compat.patch
··· 1 - diff --git src/pkg-xml2.c src/pkg-xml2.c 2 - index 048ca38c..9ea4de35 100644 3 - --- src/pkg-xml2.c 4 - +++ src/pkg-xml2.c 5 - @@ -507,8 +507,13 @@ f_xml_generate (svalue_t *sp) 6 - return sp; 7 - } 8 - 9 - +#if LIBXML_VERSION >= 21200 10 - +static void 11 - +xml_pkg_error_handler(void * userData, const xmlError *error) 12 - +#else 13 - static void 14 - xml_pkg_error_handler(void * userData, xmlErrorPtr error) 15 - +#endif 16 - { 17 - if (error) 18 - {
···
+16 -12
pkgs/by-name/ld/ldmud/package.nix
··· 26 python310, 27 }: 28 29 - stdenv.mkDerivation rec { 30 pname = "ldmud"; 31 - version = "3.6.7"; 32 33 src = fetchFromGitHub { 34 owner = "ldmud"; 35 repo = "ldmud"; 36 - rev = version; 37 - sha256 = "sha256-PkrjP7tSZMaj61Hsn++7+CumhqFPLbf0+eAI6afP9HA="; 38 }; 39 40 patches = [ 41 - ./libxml2-2.12.0-compat.patch 42 ./mysql-compat.patch 43 ]; 44 45 - sourceRoot = "${src.name}/src"; 46 47 nativeBuildInputs = [ 48 autoreconfHook 49 pkg-config 50 bison 51 ]; 52 buildInputs = 53 [ 54 libgcrypt ··· 86 (lib.enableFeature pythonSupport "use-python") 87 ]; 88 89 - preConfigure = lib.optionalString mysqlSupport '' 90 - export CPPFLAGS="-I${lib.getDev libmysqlclient}/include/mysql" 91 - export LDFLAGS="-L${libmysqlclient}/lib/mysql" 92 - ''; 93 94 installTargets = [ 95 "install-driver" ··· 105 meta = { 106 description = "Gamedriver for LPMuds including a LPC compiler, interpreter and runtime"; 107 homepage = "https://ldmud.eu"; 108 - changelog = "https://github.com/ldmud/ldmud/blob/${version}/HISTORY"; 109 longDescription = '' 110 LDMud started as a project to clean up and modernize Amylaar's LPMud 111 gamedriver. Primary goals are full documentation, a commented source body ··· 120 platforms = with lib.platforms; linux ++ darwin; 121 maintainers = with lib.maintainers; [ cpu ]; 122 }; 123 - }
··· 26 python310, 27 }: 28 29 + stdenv.mkDerivation (finalAttrs: { 30 pname = "ldmud"; 31 + version = "3.6.8"; 32 33 src = fetchFromGitHub { 34 owner = "ldmud"; 35 repo = "ldmud"; 36 + tag = finalAttrs.version; 37 + hash = "sha256-ojOLM1vkuwuF0vXx6lCH0+OlyLkkOOnTJEUiZPpUhzo="; 38 }; 39 40 patches = [ 41 ./mysql-compat.patch 42 ]; 43 44 + sourceRoot = "${finalAttrs.src.name}/src"; 45 46 nativeBuildInputs = [ 47 autoreconfHook 48 pkg-config 49 bison 50 ]; 51 + 52 buildInputs = 53 [ 54 libgcrypt ··· 86 (lib.enableFeature pythonSupport "use-python") 87 ]; 88 89 + preConfigure = 90 + lib.optionalString mysqlSupport '' 91 + export CPPFLAGS="-I${lib.getDev libmysqlclient}/include/mysql" 92 + export LDFLAGS="-L${libmysqlclient}/lib/mysql" 93 + '' 94 + + lib.optionalString stdenv.hostPlatform.isDarwin '' 95 + export LDFLAGS="$LDFLAGS -L${libiconv}/lib -liconv" 96 + ''; 97 98 installTargets = [ 99 "install-driver" ··· 109 meta = { 110 description = "Gamedriver for LPMuds including a LPC compiler, interpreter and runtime"; 111 homepage = "https://ldmud.eu"; 112 + changelog = "https://github.com/ldmud/ldmud/blob/${finalAttrs.version}/HISTORY"; 113 longDescription = '' 114 LDMud started as a project to clean up and modernize Amylaar's LPMud 115 gamedriver. Primary goals are full documentation, a commented source body ··· 124 platforms = with lib.platforms; linux ++ darwin; 125 maintainers = with lib.maintainers; [ cpu ]; 126 }; 127 + })