rtorrent: Add option to build with Lua support

This commit is contained in:
PRESFIL
2025-07-07 13:42:20 +00:00
parent fe8a200951
commit 2a6dc58319

View File

@@ -14,6 +14,8 @@
zlib,
nixosTests,
gitUpdater,
withLua ? false,
lua5_4_compat,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -50,12 +52,12 @@ stdenv.mkDerivation (finalAttrs: {
ncurses
openssl
zlib
];
] ++ lib.optionals withLua [ lua5_4_compat ];
configureFlags = [
"--with-xmlrpc-tinyxml2"
"--with-posix-fallocate"
];
] ++ lib.optionals withLua [ "--with-lua" ];
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };