diff --git a/pkgs/by-name/rt/rtorrent/package.nix b/pkgs/by-name/rt/rtorrent/package.nix index 0344c4d984ed..4429667a423b 100644 --- a/pkgs/by-name/rt/rtorrent/package.nix +++ b/pkgs/by-name/rt/rtorrent/package.nix @@ -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"; };