summaryrefslogtreecommitdiffstats
path: root/makefu/3modules/rtorrent.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-08-24 00:19:01 +0200
committermakefu <github@syntax-fehler.de>2016-08-24 00:19:01 +0200
commit5f61d1f92f8c9fa0c69ec0aceea1884b05b6e666 (patch)
tree20d0b1ca8ed2415993118c1ddb8aecf9c779d07e /makefu/3modules/rtorrent.nix
parent5231d21dfbfd0e1aead9d654831e40aa481181a4 (diff)
m 3 rtorrent: only buidl rutorrent if webcfg is enabled as well
Diffstat (limited to 'makefu/3modules/rtorrent.nix')
-rw-r--r--makefu/3modules/rtorrent.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/makefu/3modules/rtorrent.nix b/makefu/3modules/rtorrent.nix
index 98eb5f10f..02c922516 100644
--- a/makefu/3modules/rtorrent.nix
+++ b/makefu/3modules/rtorrent.nix
@@ -78,7 +78,8 @@ let
# This only works because none of the attrsets returns the same key
config = with lib; mkIf cfg.enable (lib.mkMerge [
(lib.mkIf webcfg.enable rpcweb-imp)
- (lib.mkIf rucfg.enable rutorrent-imp)
+ # only build rutorrent-imp if webcfg is enabled as well
+ (lib.mkIf (webcfg.enable && rucfg.enable) rutorrent-imp)
imp
]);
};
@@ -111,7 +112,8 @@ let
};
rutorrent = {
- enable = mkEnableOption "rutorrent";
+ enable = mkEnableOption "rutorrent"; # requires rtorrent.web.enable
+
package = mkOption {
type = types.package;
description = ''