anchor.diff:        cp -r luarocks/lib $out;
       '';
   
  -    meta = {
  -      homepage = "https://github.com/lua-stdlib/lua-stdlib/";
  -      platforms = stdenv.lib.platforms.linux;
  -      license = stdenv.lib.licenses.mit;
  +    meta = with stdenv.lib; {
  +      description = "Lua bindings of various regex library APIs";
  +      homepage = "https://github.com/rrthomas/lrexlib";
  +      license = licenses.mit;
  +      maintainers = with maintainers; [ vyp ];
  +      platforms = platforms.linux;
       };
     };
   
     luasqlite3 = buildLuaPackage rec {
       name = "sqlite3-${version}";
  -    version = "2.1.1";
  -    src = fetchzip {
  -      url = "https://github.com/LuaDist/luasql-sqlite3/archive/2acdb6cb256e63e5b5a0ddd72c4639d8c0feb52d.zip";
  -      sha256 = "17zsa0jzciildil9k4lb0rjn9s1nj80dy16pzx9bxqyi75pjf2d4";
  -    };
  -
  -    buildInputs = [ unzip sqlite ];
  +    version = "2.3.0";
  +
  +    src = fetchFromGitHub {
  +      owner = "LuaDist";
  +      repo = "luasql-sqlite3";
  +      rev = version;
  +      sha256 = "05k8zs8nsdmlwja3hdhckwknf7ww5cvbp3sxhk2xd1i3ij6aa10b";
  +    };
  +
  +    buildInputs = [ sqlite ];
   
       patches = [ ../development/lua-modules/luasql.patch ];
   
  -    meta = {
  +    meta = with stdenv.lib; {
  +      description = "Database connectivity for Lua";
         homepage = "https://github.com/LuaDist/luasql-sqlite3";
  -      platforms = stdenv.lib.platforms.linux;
  -      license = stdenv.lib.licenses.mit;
  +      license = licenses.mit;
  +      maintainers = with maintainers; [ vyp ];
  +      platforms = platforms.linux;
       };
     };
   
     lpeg = buildLuaPackage rec {
       name = "lpeg-${version}";
       version = "0.12";
  +
       src = fetchurl {
         url = "http://www.inf.puc-rio.br/~roberto/lpeg/${name}.tar.gz";
         sha256 = "0xlbfw1w7l65a5qhnx5sfw327hkq1zcj8xmg4glfw6fj9ha4b9gg";
       };
  -    buildInputs = [ unzip ];
   
       preBuild = ''
         makeFlagsArray=(CC=$CC);
  
positive.code:       sha256 = "09pbapjhyc3sn0jgx747shqr9286wqfzw02h43p4pk8fv2b766b9";
      };
  
      meta = with stdenv.lib; {
        description = "GObject-introspection based dynamic Lua binding to GObject based libraries";
        homepage    = https://github.com/pavouk/lgi;
        license     = "custom";
        maintainers = with maintainers; [ lovek323 rasendubi ];
        platforms   = platforms.unix;
      };
  
    nativeBuildInputs = [ pkgconfig ];
      buildInputs = [ glib gobjectIntrospection lua ];
  
      makeFlags = [ "LUA_VERSION=${lua.luaversion}" ];
  
      preBuild = ''
        sed -i "s|/usr/local|$out|" lgi/Makefile
      '';
    };
  
    mpack = buildLuaPackage rec {
      name = "lua-mpack-${libmpack.version}";
      src = libmpack.src;
      sourceRoot = "libmpack-${libmpack.rev}-src/binding/lua";
    nativeBuildInputs = [ pkgconfig ];
      buildInputs = [ libmpack ]; #libtool lua ];
      dontBuild = true;
      preInstall = ''
        mkdir -p $out/lib/lua/${lua.luaversion}
      '';
      NIX_CFLAGS_COMPILE = "-Wno-error -fpic";
      installFlags = [
        "USE_SYSTEM_LUA=yes"
        "LUA_VERSION_MAJ_MIN="
        "LUA_CMOD_INSTALLDIR=$$out/lib/lua/${lua.luaversion}"
      ];
      # gcc -llua fails with luajit.
      disabled = isLuaJIT;
      meta = {
        description = "Simple implementation of msgpack in C Lua 5.1";
        homepage = "https://github.com/tarruda/libmpack";
        platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
        license = stdenv.lib.licenses.mit;
      };
    };
  
  
negative.code:       );
      '';
  
      meta = with stdenv.lib; {
        description = "Lua bindings for POSIX iconv";
        homepage = "https://ittner.github.io/lua-iconv/";
        license = licenses.mit;
        maintainers = with maintainers; [ richardipsum ];
        platforms = platforms.unix;
      };
    };
  
    luasec = buildLuaPackage rec {
      name = "sec-0.6";
  
      src = fetchFromGitHub {
        owner = "brunoos";
        repo = "luasec";
  