Commit 612f8258 authored by KSJ2000's avatar KSJ2000
Browse files

qbittorrent-enhanced: add nox version

parent fece93b6
Loading
Loading
Loading
Loading
+10 −34
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, boost
, libtorrent-rasterbar
, openssl
, qt6
, zlib
{
  lib,
  fetchFromGitHub,
  qbittorrent,
  guiSupport ? true,
}:

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

  src = fetchFromGitHub {
@@ -21,29 +16,10 @@ stdenv.mkDerivation rec {
    hash = "sha256-9RCG530zWQ+qzP0Y+y69NFlBWVA8GT29dY8aC1cvq7o=";
  };

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

  buildInputs = [
    openssl.dev
    boost
    zlib
    libtorrent-rasterbar
    qt6.qtbase
    qt6.qtsvg
    qt6.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
@@ -15462,6 +15462,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 { };