- Move lgi to luaPackages - Use luaPackages in awesome and passthru lua - Allow to pass lua modules to the awesome WM so that those can be used in the configuration
···5 for each package in a separate file: the call to the function would
6 be almost as must code as the function itself. */
78-{ fetchurl, stdenv, lua, callPackage, unzip, zziplib
9-, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat
010}:
1112let
···14 isLua52 = lua.luaversion == "5.2";
15 self = _self;
16 _self = with self; {
017 inherit (stdenv.lib) maintainers;
1819 #define build lua package function
···255 license = stdenv.lib.licenses.mit;
256 };
257 };
000000000000000000000000000258}; in self
···5 for each package in a separate file: the call to the function would
6 be almost as must code as the function itself. */
78+{ fetchurl, stdenv, lua, callPackage, unzip, zziplib, pkgconfig, libtool
9+, pcre, oniguruma, gnulib, tre, glibc, sqlite, openssl, expat, cairo
10+, perl, gtk, python, glib, gobjectIntrospection
11}:
1213let
···15 isLua52 = lua.luaversion == "5.2";
16 self = _self;
17 _self = with self; {
18+ inherit lua;
19 inherit (stdenv.lib) maintainers;
2021 #define build lua package function
···257 license = stdenv.lib.licenses.mit;
258 };
259 };
260+261+ lgi = stdenv.mkDerivation rec {
262+ name = "lgi-${version}";
263+ version = "0.7.2";
264+265+ src = fetchurl {
266+ url = "https://github.com/pavouk/lgi/archive/${version}.tar.gz";
267+ sha256 = "0ihl7gg77b042vsfh0k7l53b7sl3d7mmrq8ns5lrsf71dzrr19bn";
268+ };
269+270+ meta = with stdenv.lib; {
271+ description = "GObject-introspection based dynamic Lua binding to GObject based libraries";
272+ homepage = https://github.com/pavouk/lgi;
273+ license = "custom";
274+ maintainers = with maintainers; [ lovek323 ];
275+ platforms = platforms.unix;
276+ };
277+278+ buildInputs = [ glib gobjectIntrospection lua pkgconfig ];
279+280+ makeFlags = [ "LUA_VERSION=${lua.luaversion}" ];
281+282+ preBuild = ''
283+ sed -i "s|/usr/local|$out|" lgi/Makefile
284+ '';
285+ };
286+287}; in self