luaPackages.lgi: move to generated

This commit is contained in:
Matthieu Coudron 2019-02-06 00:57:53 +09:00
parent c01fe375ca
commit 71b2e1f554
4 changed files with 32 additions and 37 deletions

View File

@ -5,6 +5,7 @@ cqueues
dkjson
fifo
inspect
lgi
lpeg_patterns
lrexlib-gnu,
lrexlib-posix,

1 ansicolors,
5 dkjson
6 fifo
7 inspect
8 lgi
9 lpeg_patterns
10 lrexlib-gnu,
11 lrexlib-posix,

View File

@ -150,6 +150,26 @@ inspect = buildLuarocksPackage {
};
};
};
lgi = buildLuarocksPackage {
pname = "lgi";
version = "0.9.2-1";
src = fetchurl {
url = https://luarocks.org/lgi-0.9.2-1.src.rock;
sha256 = "07ajc5pdavp785mdyy82n0w6d592n96g95cvq025d6i0bcm2cypa";
};
disabled = ( luaOlder "5.1");
propagatedBuildInputs = [lua ];
buildType="make";
meta = {
homepage = "http://github.com/pavouk/lgi";
description="Lua bindings to GObject libraries";
license = {
fullName = "MIT/X11";
};
};
};
lpeg_patterns = buildLuarocksPackage {
pname = "lpeg_patterns";
version = "0.5-0";

View File

@ -18,6 +18,17 @@ with super;
'';
});
lgi = super.lgi.overrideAttrs(oa: {
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = with pkgs; oa.buildInputs ++ [ glib gobjectIntrospection];
patches = [
(pkgs.fetchpatch {
name = "lgi-find-cairo-through-typelib.patch";
url = "https://github.com/psychon/lgi/commit/46a163d9925e7877faf8a4f73996a20d7cf9202a.patch";
sha256 = "0gfvvbri9kyzhvq3bvdbj2l6mwvlz040dk4mrd5m9gz79f7w109c";
})
];
});
ltermbox = super.ltermbox.override( {
disabled = !isLua51 || isLuaJIT;

View File

@ -871,43 +871,6 @@ with self; {
};
};
lgi = toLuaModule(stdenv.mkDerivation rec {
name = "lgi-${version}";
version = "0.9.2";
src = fetchFromGitHub {
owner = "pavouk";
repo = "lgi";
rev = version;
sha256 = "03rbydnj411xpjvwsyvhwy4plm96481d7jax544mvk7apd8sd5jj";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib gobject-introspection lua ];
makeFlags = [ "LUA_VERSION=${lua.luaversion}" ];
preBuild = ''
sed -i "s|/usr/local|$out|" lgi/Makefile
'';
patches = [
(fetchpatch {
name = "lgi-find-cairo-through-typelib.patch";
url = "https://github.com/psychon/lgi/commit/46a163d9925e7877faf8a4f73996a20d7cf9202a.patch";
sha256 = "0gfvvbri9kyzhvq3bvdbj2l6mwvlz040dk4mrd5m9gz79f7w109c";
})
];
meta = with stdenv.lib; {
description = "GObject-introspection based dynamic Lua binding to GObject based libraries";
homepage = https://github.com/pavouk/lgi;
license = licenses.mit;
maintainers = with maintainers; [ lovek323 rasendubi ];
platforms = platforms.unix;
};
});
mpack = buildLuaPackage rec {
name = "mpack-${version}";
version = "1.0.7";