anchor.diff:    buildInputs = [
       boost
       libtorrent-rasterbar
  +    zlib
     ] ++ optionals (qt5 != null) [
       dbus
  -    qt5.qtbase
  -    qt5.qttools
  +    qt5
     ];
   
     patches = [
  
positive.code:   inherit (stdenv.lib)
      enFlag
      optionals;
  in
  
  assert qt5 != null ->
    dbus != null
    && qt5.qtbase != null
    && qt5.qttools != null;
  
  stdenv.mkDerivation rec {
    name = "qbittorrent-${version}";
    version = "3.3.3";
  
    src = fetchurl {
      url = "mirror://sourceforge/qbittorrent/${name}.tar.xz";
      sha256 = "0lyv230vqwb77isjqm6fwwgv8hdap88zir9yrccj0qxj7zf8p3cw";
    };
  
    nativeBuildInputs = [
  
negative.code: { stdenv
  , fetchTritonPatch
  , fetchzip
  , which
  
  , boost
  , dbus
  , libtorrent-rasterbar
  , qt5
  , zlib
  
  , webuiSupport ? true
  }:
  
  