mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 10:22:54 +08:00
rtorrent: Add option to build with Lua support
This commit is contained in:
@@ -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"; };
|
||||
|
||||
Reference in New Issue
Block a user