Commit 2a6dc583 authored by PRESFIL's avatar PRESFIL
Browse files

rtorrent: Add option to build with Lua support

parent fe8a2009
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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"; };