From 79c3a39369efa30c7b176f80de8cb89fa87fd439 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Thu, 13 Aug 2026 22:33:59 +0200 Subject: [PATCH] luaPackages.fallo: init at 2.3.0-1 --- maintainers/scripts/luarocks-packages.csv | 1 + .../lua-modules/generated-packages.nix | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/maintainers/scripts/luarocks-packages.csv b/maintainers/scripts/luarocks-packages.csv index dd50dc7154e1..55b1ad758c92 100644 --- a/maintainers/scripts/luarocks-packages.csv +++ b/maintainers/scripts/luarocks-packages.csv @@ -23,6 +23,7 @@ digestif,,,,,5.3, dkjson,,,,,, enet,,,,,,ulysseszhan etlua,,,,,,ulysseszhan +fallo,,,,,,mrcjkb fennel,,,,,,misterio77 fidget.nvim,,,,,5.1,mrcjkb fifo,,,,,, diff --git a/pkgs/development/lua-modules/generated-packages.nix b/pkgs/development/lua-modules/generated-packages.nix index e3f874b6a4ca..eac1b5633676 100644 --- a/pkgs/development/lua-modules/generated-packages.nix +++ b/pkgs/development/lua-modules/generated-packages.nix @@ -917,6 +917,41 @@ final: prev: { } ) { }; + fallo = callPackage ( + { + buildLuarocksPackage, + fetchFromGitHub, + fetchurl, + lua-cjson, + luaOlder, + }: + buildLuarocksPackage { + pname = "fallo"; + version = "2.3.0-1"; + knownRockspec = + (fetchurl { + url = "mirror://luarocks/fallo-2.3.0-1.rockspec"; + sha256 = "14mxxd6nfbx5bchp3i5c0nf93higak6l7506r8jnh30yafyr01cq"; + }).outPath; + src = fetchFromGitHub { + owner = "NTBBloodbath"; + repo = "fallo"; + rev = "8bbbcd6b3db8c10ed68f51c2c6d79af99e5feed7"; + hash = "sha256-KW3vzjAd68Q13v2OZoQIzNUj9/qhYh1Ve5dBIG+yuV0="; + }; + + disabled = luaOlder "5.1"; + propagatedBuildInputs = [ lua-cjson ]; + + meta = { + homepage = "https://github.com/NTBBloodbath/fallo"; + maintainers = with lib.maintainers; [ mrcjkb ]; + license.fullName = "LGPL-2.0-only"; + description = "Modern and ergonomic error handling for Lua, inspired by Rust's Result."; + }; + } + ) { }; + fennel = callPackage ( { buildLuarocksPackage,