diff --git a/lib/maintainers.nix b/lib/maintainers.nix index f4cd203e41df..c490b9ee979d 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -151,6 +151,7 @@ madjar = "Georges Dubus "; magnetophon = "Bart Brouns "; mahe = "Matthias Herrmann "; + makefu = "Felix Richter "; malyn = "Michael Alyn Miller "; manveru = "Michael Fellinger "; marcweber = "Marc Weber "; diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index bfaa66c432e3..4757dfd49c31 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -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