Some lua and awesome improvements

- 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
This commit is contained in:
Luca Bruno
2014-12-17 15:03:25 +01:00
parent 374a9cc162
commit 614162ee6c
6 changed files with 75 additions and 41 deletions

View File

@@ -1,24 +0,0 @@
{ stdenv, fetchurl, pkgconfig, gobjectIntrospection, lua, glib }:
stdenv.mkDerivation {
name = "lgi-0.7.2";
src = fetchurl {
url = https://github.com/pavouk/lgi/archive/0.7.2.tar.gz;
sha256 = "0ihl7gg77b042vsfh0k7l53b7sl3d7mmrq8ns5lrsf71dzrr19bn";
};
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 ];
platforms = platforms.unix;
};
buildInputs = [ glib gobjectIntrospection lua pkgconfig ];
preBuild = ''
sed -i "s|/usr/local|$out|" lgi/Makefile
'';
}