Skip to content

Commit

Permalink
qbittorrent-enhanced: 4.6.7.10 -> 5.0.2.10; add nox variant (NixOS#35…
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Dec 23, 2024
2 parents 39fd969 + 612f825 commit 2c981cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 35 deletions.
47 changes: 12 additions & 35 deletions pkgs/by-name/qb/qbittorrent-enhanced/package.nix
Original file line number Diff line number Diff line change
@@ -1,48 +1,25 @@
{ 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 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 2c981cb

Please sign in to comment.