Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d3983caf451a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3b5b9a73f59f
Choose a head ref
  • 3 commits
  • 6 files changed
  • 1 contributor

Commits on Sep 7, 2019

  1. lua*Packages.luautf8: init at 0.1.1-1

    Dependency for mudlet >= 4.0
    Philipp authored and Matthieu Coudron committed Sep 7, 2019
    Copy the full SHA
    fc250d6 View commit details
  2. lua*Packages.lua-yajl: init at 2.0-1

    Dependency for mudlet >= 4.0
    Philipp authored and Matthieu Coudron committed Sep 7, 2019
    Copy the full SHA
    2787d41 View commit details
  3. mudlet: 3.0.0-delta -> 4.0.3

    Fixed broken package.
    Philipp authored and Matthieu Coudron committed Sep 7, 2019
    Copy the full SHA
    3b5b9a7 View commit details
2 changes: 2 additions & 0 deletions maintainers/scripts/luarocks-packages.csv
Original file line number Diff line number Diff line change
@@ -52,7 +52,9 @@ luasocket,,,,,
luasql-sqlite3,,,,,vyp
luassert,,,,,
luasystem,,,,,
luautf8,,,,,pstn
luazip,,,,,
lua-yajl,,,,,pstn
luuid,,,,,
luv,,,,,
markdown,,,,,
40 changes: 40 additions & 0 deletions pkgs/development/lua-modules/generated-packages.nix
Original file line number Diff line number Diff line change
@@ -1106,6 +1106,26 @@ luasystem = buildLuarocksPackage {
};
};
};
luautf8 = buildLuarocksPackage {
pname = "luautf8";
version = "0.1.1-1";

src = fetchurl {
url = https://luarocks.org/luautf8-0.1.1-1.src.rock;
sha256 = "1832ilrlddh4h7ayx4l9j7z1p8c2hk5yr96cpxjjrmirkld23aji";
};
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];

meta = with stdenv.lib; {
homepage = "http://github.com/starwing/luautf8";
description = "A UTF-8 support module for Lua";
maintainers = with maintainers; [ pstn ];
license = {
fullName = "MIT";
};
};
};
luazip = buildLuarocksPackage {
pname = "luazip";
version = "1.2.7-1";
@@ -1125,6 +1145,26 @@ luazip = buildLuarocksPackage {
};
};
};
lua-yajl = buildLuarocksPackage {
pname = "lua-yajl";
version = "2.0-1";

src = fetchurl {
url = https://luarocks.org/lua-yajl-2.0-1.src.rock;
sha256 = "0bsm519vs53rchcdf8g96ygzdx2bz6pa4vffqlvc7ap49bg5np4f";
};
disabled = (luaOlder "5.1");
propagatedBuildInputs = [ lua ];

meta = with stdenv.lib; {
homepage = "http://github.com/brimworks/lua-yajl";
description = "Integrate the yajl JSON library with Lua.";
maintainers = with maintainers; [ pstn ];
license = {
fullName = "MIT/X11";
};
};
};
luuid = buildLuarocksPackage {
pname = "luuid";
version = "20120509-2";
6 changes: 6 additions & 0 deletions pkgs/development/lua-modules/overrides.nix
Original file line number Diff line number Diff line change
@@ -235,6 +235,12 @@ with super;
];
});

lua-yajl = super.lua-yajl.override({
buildInputs = [
pkgs.yajl
];
});

luuid = super.luuid.override(old: {
externalDeps = [
{ name = "LIBUUID"; dep = pkgs.libuuid; }
72 changes: 44 additions & 28 deletions pkgs/games/mudlet/default.nix
Original file line number Diff line number Diff line change
@@ -1,46 +1,62 @@
{ fetchurl, unzip, stdenv, makeWrapper, qtbase, yajl, libzip, hunspell
, boost, lua5_1, luafilesystem, luazip, lrexlib-pcre, luasql-sqlite3, qmake }:
{ fetchFromGitHub, fetchpatch, stdenv, wrapQtAppsHook, pcre, pugixml, qtbase, qtmultimedia, qttools, yajl, libzip, hunspell
, boost, libGLU, lua, cmake, which, }:

let
luaEnv = lua.withPackages(ps: with ps; [ luazip luafilesystem lrexlib-pcre luasql-sqlite3 lua-yajl luautf8 ]);
in
stdenv.mkDerivation rec {
pname = "mudlet";
version = "3.0.0-delta";

src = fetchurl {
url = "https://github.com/Mudlet/Mudlet/archive/Mudlet-${version}.tar.gz";
sha256 = "08fhqd323kgz5s17ac5z9dhkjxcmwvcmvhzy0x1vw4rayhijfrd7";
version = "4.0.3";

src = fetchFromGitHub {
owner = "Mudlet";
repo = "Mudlet";
rev = "Mudlet-${version}";
fetchSubmodules = true;
sha256 = "18bl4k0qgh47d9k5ipfvypfj1il678c0ws64a8adn8k21jajzkik";
};

nativeBuildInputs = [ makeWrapper qmake ];
patches = [
( fetchpatch {
url = "https://github.com/Mudlet/Mudlet/commit/3c8f12b6d757894d92ec2e2c9b12b91f69e8a3b6.patch";
name = "hunspell-1.7";
sha256 = "09qggls4pzpd8h9h10fbpfd7x3kr7fjp9axdwz98igpwy714n98j";
})
];

nativeBuildInputs = [ cmake wrapQtAppsHook qttools which ];
buildInputs = [
unzip qtbase lua5_1 hunspell libzip yajl boost
luafilesystem luazip lrexlib-pcre luasql-sqlite3
pcre pugixml qtbase qtmultimedia luaEnv libzip libGLU yajl boost hunspell
];

preConfigure = "cd src";
WITH_FONTS = "NO";
WITH_UPDATER = "NO";

enableParallelBuilding = true;

installPhase = let
luaZipPath = "${luazip}/lib/lua/5.1/?.so";
luaFileSystemPath = "${luafilesystem}/lib/lua/5.1/?.so";
lrexlibPath = "${lrexlib-pcre}/lib/lua/5.1/?.so";
luasqlitePath = "${luasql-sqlite3}/lib/lua/5.1/?.so";
in ''
installPhase = ''
mkdir -pv $out/bin
cp mudlet $out
cp -r mudlet-lua $out
cp src/mudlet $out
mkdir -pv $out/share/mudlet
cp -r ../src/mudlet-lua/lua $out/share/mudlet/
makeWrapper $out/mudlet $out/bin/mudlet \
--set LUA_CPATH "${luaFileSystemPath};${luaZipPath};${lrexlibPath};${luasqlitePath}" \
mkdir -pv $out/share/applications
cp ../mudlet.desktop $out/share/applications/
mkdir -pv $out/share/pixmaps
cp -r ../mudlet.png $out/share/pixmaps/
makeQtWrapper $out/mudlet $out/bin/mudlet \
--set LUA_CPATH "${luaEnv}/lib/lua/${lua.luaversion}/?.so" \
--prefix LUA_PATH : "$NIX_LUA_PATH" \
--run "cd $out";
'';

patches = [ ./libs.patch ];

meta = {
meta = with stdenv.lib; {
description = "Crossplatform mud client";
homepage = http://mudlet.org/;
maintainers = [ stdenv.lib.maintainers.wyvie ];
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2;
broken = true;
maintainers = [ maintainers.wyvie maintainers.pstn ];
platforms = platforms.linux;
license = licenses.gpl2;
};
}
13 changes: 0 additions & 13 deletions pkgs/games/mudlet/libs.patch

This file was deleted.

2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -22122,7 +22122,7 @@ in
mrrescue = callPackage ../games/mrrescue { };

mudlet = libsForQt5.callPackage ../games/mudlet {
inherit (lua51Packages) luafilesystem lrexlib-pcre luazip luasql-sqlite3;
lua = lua5_1;
};

n2048 = callPackage ../games/n2048 {};