m 3 rtorrent: only buidl rutorrent if webcfg is enabled as well

This commit is contained in:
makefu 2016-08-24 00:19:01 +02:00
parent 5231d21dfb
commit 5f61d1f92f
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -78,7 +78,8 @@ let
# This only works because none of the attrsets returns the same key # This only works because none of the attrsets returns the same key
config = with lib; mkIf cfg.enable (lib.mkMerge [ config = with lib; mkIf cfg.enable (lib.mkMerge [
(lib.mkIf webcfg.enable rpcweb-imp) (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 imp
]); ]);
}; };
@ -111,7 +112,8 @@ let
}; };
rutorrent = { rutorrent = {
enable = mkEnableOption "rutorrent"; enable = mkEnableOption "rutorrent"; # requires rtorrent.web.enable
package = mkOption { package = mkOption {
type = types.package; type = types.package;
description = '' description = ''