Merge pull request #9132 from makefu/awesome-vicious-luaPackage
luaPackages: add vicious module
This commit is contained in:
commit
db22ec1549
|
@ -151,6 +151,7 @@
|
|||
madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
|
||||
magnetophon = "Bart Brouns <bart@magnetophon.nl>";
|
||||
mahe = "Matthias Herrmann <matthias.mh.herrmann@gmail.com>";
|
||||
makefu = "Felix Richter <makefu@syntax-fehler.de>";
|
||||
malyn = "Michael Alyn Miller <malyn@strangeGizmo.com>";
|
||||
manveru = "Michael Fellinger <m.fellinger@gmail.com>";
|
||||
marcweber = "Marc Weber <marco-oweber@gmx.de>";
|
||||
|
|
|
@ -401,4 +401,29 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
vicious = stdenv.mkDerivation rec {
|
||||
name = "vicious-${version}";
|
||||
version = "2.1.3";
|
||||
|
||||
src = fetchzip {
|
||||
url = "http://git.sysphere.org/vicious/snapshot/vicious-${version}.tar.xz";
|
||||
sha256 = "1c901siza5vpcbkgx99g1vkqiki5qgkzx2brnj4wrpbsbfzq0bcq";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "vicious widgets for window managers";
|
||||
homepage = http://git.sysphere.org/vicious/;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ makefu ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
buildInputs = [ lua ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/lua/${lua.luaversion}/
|
||||
cp -r . $out/lib/lua/${lua.luaversion}/vicious/
|
||||
printf "package.path = '$out/lib/lua/${lua.luaversion}/?/init.lua;' .. package.path\nreturn require((...) .. '.init')\n" > $out/lib/lua/${lua.luaversion}/vicious.lua
|
||||
'';
|
||||
};
|
||||
|
||||
}; in self
|
||||
|
|
Loading…
Reference in a new issue