| 
									
										
										
										
											2016-04-17 02:51:15 +03:00
										 |  |  | { fetchurl, unzip, stdenv, makeWrapper, qtbase, yajl, libzip, hunspell | 
					
						
							| 
									
										
										
										
											2019-06-13 21:01:10 +10:00
										 |  |  | , boost, lua5_1, luafilesystem, luazip, lrexlib-pcre, luasql-sqlite3, qmake }: | 
					
						
							| 
									
										
										
										
											2014-09-15 17:37:24 +04:00
										 |  |  | 
 | 
					
						
							|  |  |  | stdenv.mkDerivation rec { | 
					
						
							|  |  |  |   name = "mudlet-${version}"; | 
					
						
							| 
									
										
										
										
											2015-01-31 17:08:12 +03:00
										 |  |  |   version = "3.0.0-delta"; | 
					
						
							| 
									
										
										
										
											2014-09-15 17:37:24 +04:00
										 |  |  | 
 | 
					
						
							|  |  |  |   src = fetchurl { | 
					
						
							| 
									
										
										
										
											2015-01-31 17:08:12 +03:00
										 |  |  |     url = "https://github.com/Mudlet/Mudlet/archive/Mudlet-${version}.tar.gz"; | 
					
						
							|  |  |  |     sha256 = "08fhqd323kgz5s17ac5z9dhkjxcmwvcmvhzy0x1vw4rayhijfrd7"; | 
					
						
							| 
									
										
										
										
											2014-09-15 17:37:24 +04:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-02 10:40:19 -05:00
										 |  |  |   nativeBuildInputs = [ makeWrapper qmake ]; | 
					
						
							| 
									
										
										
										
											2015-09-27 10:28:24 -05:00
										 |  |  |   buildInputs = [ | 
					
						
							| 
									
										
										
										
											2017-06-02 10:40:19 -05:00
										 |  |  |     unzip qtbase lua5_1 hunspell libzip yajl boost | 
					
						
							| 
									
										
										
										
											2019-06-13 21:01:10 +10:00
										 |  |  |     luafilesystem luazip lrexlib-pcre luasql-sqlite3 | 
					
						
							| 
									
										
										
										
											2015-09-27 10:28:24 -05:00
										 |  |  |   ]; | 
					
						
							| 
									
										
										
										
											2014-09-15 17:37:24 +04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-17 02:51:15 +03:00
										 |  |  |   preConfigure = "cd src"; | 
					
						
							| 
									
										
										
										
											2014-09-15 17:37:24 +04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-23 18:01:02 +04:00
										 |  |  |   installPhase = let | 
					
						
							|  |  |  |     luaZipPath = "${luazip}/lib/lua/5.1/?.so"; | 
					
						
							|  |  |  |     luaFileSystemPath = "${luafilesystem}/lib/lua/5.1/?.so"; | 
					
						
							| 
									
										
										
										
											2019-06-13 21:01:10 +10:00
										 |  |  |     lrexlibPath = "${lrexlib-pcre}/lib/lua/5.1/?.so"; | 
					
						
							|  |  |  |     luasqlitePath = "${luasql-sqlite3}/lib/lua/5.1/?.so"; | 
					
						
							| 
									
										
										
										
											2014-09-23 18:01:02 +04:00
										 |  |  |   in ''
 | 
					
						
							| 
									
										
										
										
											2014-09-15 17:37:24 +04:00
										 |  |  |     mkdir -pv $out/bin | 
					
						
							|  |  |  |     cp mudlet $out | 
					
						
							|  |  |  |     cp -r mudlet-lua $out | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     makeWrapper $out/mudlet $out/bin/mudlet \ | 
					
						
							| 
									
										
										
										
											2017-11-19 23:50:49 +00:00
										 |  |  |       --set LUA_CPATH "${luaFileSystemPath};${luaZipPath};${lrexlibPath};${luasqlitePath}" \ | 
					
						
							| 
									
										
										
										
											2014-09-23 18:01:02 +04:00
										 |  |  |       --run "cd $out"; | 
					
						
							| 
									
										
										
										
											2014-09-15 17:37:24 +04:00
										 |  |  |   '';
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   patches = [ ./libs.patch ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   meta = { | 
					
						
							|  |  |  |     description = "Crossplatform mud client"; | 
					
						
							|  |  |  |     homepage = http://mudlet.org/; | 
					
						
							| 
									
										
										
										
											2014-09-16 09:13:38 +04:00
										 |  |  |     maintainers = [ stdenv.lib.maintainers.wyvie ]; | 
					
						
							| 
									
										
										
										
											2014-09-15 17:37:24 +04:00
										 |  |  |     platforms = stdenv.lib.platforms.linux; | 
					
						
							|  |  |  |     license = stdenv.lib.licenses.gpl2; | 
					
						
							| 
									
										
										
										
											2016-05-09 09:50:01 -05:00
										 |  |  |     broken = true; | 
					
						
							| 
									
										
										
										
											2014-09-15 17:37:24 +04:00
										 |  |  |   }; | 
					
						
							|  |  |  | } |