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

@@ -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;