From bf0b7d6d2d0d3d15d7161278d2936235e4454d2d Mon Sep 17 00:00:00 2001 From: ByteSudoer Date: Sat, 6 Jul 2024 08:20:15 +0100 Subject: [PATCH] qbittorrent-enhanced: init at 4.6.5.10 --- .../qb/qbittorrent-enhanced/package.nix | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pkgs/by-name/qb/qbittorrent-enhanced/package.nix diff --git a/pkgs/by-name/qb/qbittorrent-enhanced/package.nix b/pkgs/by-name/qb/qbittorrent-enhanced/package.nix new file mode 100644 index 000000000000..a86b62968423 --- /dev/null +++ b/pkgs/by-name/qb/qbittorrent-enhanced/package.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, pkg-config +, boost +, libtorrent-rasterbar +, openssl +, qt5 +, zlib +}: + +stdenv.mkDerivation rec { + pname = "qbittorrent-enhanced"; + version = "4.6.5.10"; + + src = fetchFromGitHub { + owner = "c0re100"; + repo = "qBittorrent-Enhanced-Edition"; + rev = "release-${version}"; + hash = "sha256-Yy0DUTz1lWkseh9x1xnHJCI89BKqi/D7zUn/S+qC+kM="; + }; + + nativeBuildInputs = [ + pkg-config + cmake + qt5.wrapQtAppsHook + ]; + + buildInputs = [ + openssl.dev + boost + zlib + libtorrent-rasterbar + qt5.qtbase + qt5.qttools + ]; + + 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 ]; + maintainers = with lib.maintainers; [ ByteSudoer ]; + mainProgram = "qBittorrent-enhanced"; + platforms = lib.platforms.linux; + }; +}