forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qbittorrent-enhanced: 4.6.7.10 -> 5.0.2.10; add nox variant (NixOS#35…
- Loading branch information
Showing
2 changed files
with
14 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters