luaPackages.vicious: build with luarocks

This commit is contained in:
Marc Jakobi
2026-05-29 19:12:45 +02:00
parent b9d4b037e2
commit 4eff3206a0
4 changed files with 44 additions and 36 deletions

View File

@@ -176,6 +176,7 @@ tree-sitter-norg-meta,,,,,,
tree-sitter-orgmode,,,,,5.1,
utf8,,,,,,
tree-sitter-teal,,,,,,
vicious,,,,,,
vstruct,,,,,,
vusted,,,,,,
xml2lua,,,,,,teto
1 name rockspec ref server version luaversion maintainers
176 tree-sitter-orgmode 5.1
177 utf8
178 tree-sitter-teal
179 vicious
180 vstruct
181 vusted
182 xml2lua teto

View File

@@ -6357,6 +6357,36 @@ final: prev: {
}
) { };
vicious = callPackage (
{
buildLuarocksPackage,
fetchurl,
fetchzip,
luaOlder,
}:
buildLuarocksPackage {
pname = "vicious";
version = "2.7.1-3";
knownRockspec =
(fetchurl {
url = "mirror://luarocks/vicious-2.7.1-4.rockspec";
sha256 = "1yvc9mbalsyrqysxkc1lf92ki5gzizn79y2azyavmgjwljif6lfi";
}).outPath;
src = fetchzip {
url = "https://github.com/vicious-widgets/vicious/archive/refs/tags/v2.7.1.zip";
sha256 = "0bfj3bc1gmbwwvpwkmqp658iwrwdifc78hzwwy1qpn7rbmarg2qv";
};
disabled = luaOlder "5.1";
meta = {
homepage = "https://vicious.rtfd.io";
license = lib.licenses.gpl2Plus;
description = "Modular widget library for the \"awesome\" window manager";
};
}
) { };
vstruct = callPackage (
{
buildLuarocksPackage,

View File

@@ -1300,6 +1300,19 @@ in
'';
};
vicious = prev.vicious.overrideAttrs (old: {
meta = (old.meta or { }) // {
changelog = "https://github.com/vicious-widgets/vicious/blob/v${old.version}/CHANGELOG.rst";
maintainers = with lib.maintainers; [
makefu
mic92
mrcjkb
McSinyx
];
platforms = lib.platforms.linux;
};
});
vstruct = prev.vstruct.overrideAttrs (old: {
meta = (old.meta or { }) // {
broken = luaOlder "5.1" || luaAtLeast "5.4";

View File

@@ -257,40 +257,4 @@ rec {
};
readline = callPackage ../development/lua-modules/readline { inherit (pkgs) readline; };
vicious = callPackage (
{ fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "vicious";
version = "2.7.1";
src = fetchFromGitHub {
owner = "vicious-widgets";
repo = "vicious";
rev = "v${version}";
sha256 = "sha256-G4uXVV352IuD5/xDdJiLjWceUTEX18nv5nzVF9ga0i0=";
};
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
'';
meta = {
description = "Modular widget library for the awesome window manager";
homepage = "https://vicious.readthedocs.io";
changelog = "https://vicious.readthedocs.io/changelog.html";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [
makefu
mic92
McSinyx
];
platforms = lib.platforms.linux;
};
}
) { };
}