Unverified Commit 2c981cb7 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

qbittorrent-enhanced: 4.6.7.10 -> 5.0.2.10; add nox variant (#358112)

parents 39fd969a 612f8258
Loading
Loading
Loading
Loading
+12 −35
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, boost
, libtorrent-rasterbar
, openssl
, qt5
, zlib
{
  lib,
  fetchFromGitHub,
  qbittorrent,
  guiSupport ? true,
}:

stdenv.mkDerivation rec {
  pname = "qbittorrent-enhanced";
  version = "4.6.7.10";
(qbittorrent.override { inherit guiSupport; }).overrideAttrs (old: rec {
  pname = "qbittorrent-enhanced" + lib.optionalString (!guiSupport) "-nox";
  version = "5.0.2.10";

  src = fetchFromGitHub {
    owner = "c0re100";
    repo = "qBittorrent-Enhanced-Edition";
    rev = "release-${version}";
    hash = "sha256-Mr376nH2pE6NMF9IdDhZULwqkRr7472OZnKO86hb6ZI=";
    hash = "sha256-9RCG530zWQ+qzP0Y+y69NFlBWVA8GT29dY8aC1cvq7o=";
  };

  nativeBuildInputs = [
    pkg-config
    cmake
    qt5.wrapQtAppsHook
  ];

  buildInputs = [
    openssl.dev
    boost
    zlib
    libtorrent-rasterbar
    qt5.qtbase
    qt5.qttools
  ];

  meta = {
  meta = old.meta // {
    description = "Unofficial enhanced version of qBittorrent, a BitTorrent client";
    homepage = "https://github.com/c0re100/qBittorrent-Enhanced-Edition";
    changelog = "https://github.com/c0re100/qBittorrent-Enhanced-Edition/blob/${src.rev}/Changelog";
    license = with lib.licenses; [ gpl2Only gpl3Only ];
    changelog = "https://github.com/c0re100/qBittorrent-Enhanced-Edition/blob/release-${version}/Changelog";
    maintainers = with lib.maintainers; [ ByteSudoer ];
    mainProgram = "qBittorrent-enhanced";
    platforms = lib.platforms.linux;
  };
}
})
+2 −0
Original line number Diff line number Diff line
@@ -15211,6 +15211,8 @@ with pkgs;
  qbittorrent-nox = qbittorrent.override { guiSupport = false; };
  qbittorrent-enhanced-nox = qbittorrent-enhanced.override { guiSupport = false; };
  qcad = libsForQt5.callPackage ../applications/misc/qcad { };
  qcomicbook = libsForQt5.callPackage ../applications/graphics/qcomicbook { };