mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
qbittorrent: 4.1.0 -> 4.1.1 (#41252)
This commit is contained in:
parent
507d24a7de
commit
c97fcb4d2b
@ -1,44 +1,47 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, which
|
{ stdenv, fetchFromGitHub, pkgconfig
|
||||||
, boost, libtorrentRasterbar, qtbase, qttools, qtsvg
|
, boost, libtorrentRasterbar, qtbase, qttools, qtsvg
|
||||||
, debugSupport ? false # Debugging
|
, debugSupport ? false # Debugging
|
||||||
, guiSupport ? true, dbus_libs ? null # GUI (disable to run headless)
|
, guiSupport ? true, dbus ? null # GUI (disable to run headless)
|
||||||
, webuiSupport ? true # WebUI
|
, webuiSupport ? true # WebUI
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert guiSupport -> (dbus_libs != null);
|
assert guiSupport -> (dbus != null);
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "qbittorrent-${version}";
|
name = "qbittorrent-${version}";
|
||||||
version = "4.1.0";
|
version = "4.1.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://sourceforge/qbittorrent/${name}.tar.xz";
|
owner = "qbittorrent";
|
||||||
sha256 = "0fdr74sc31x421sb69vlgal1hxpccjxxk8hrrzz9f5bg4jv895pw";
|
repo = "qbittorrent";
|
||||||
|
rev = "release-${version}";
|
||||||
|
sha256 = "09bf1jr2sfdps8cb154gjw7zhdcpsamhnfbgacdmkfyd7qgcbykf";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig which ];
|
# NOTE: 2018-05-31: CMake is working but it is not officially supported
|
||||||
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ boost libtorrentRasterbar qtbase qttools qtsvg ]
|
buildInputs = [ boost libtorrentRasterbar qtbase qttools qtsvg ]
|
||||||
++ optional guiSupport dbus_libs;
|
++ optional guiSupport dbus; # D(esktop)-Bus depends on GUI support
|
||||||
|
|
||||||
# Otherwise qm_gen.pri assumes lrelease-qt5, which does not exist.
|
# Otherwise qm_gen.pri assumes lrelease-qt5, which does not exist.
|
||||||
QMAKE_LRELEASE = "lrelease";
|
QMAKE_LRELEASE = "lrelease";
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-boost-libdir=${boost.out}/lib"
|
"--with-boost-libdir=${boost.out}/lib"
|
||||||
"--with-boost=${boost.dev}"
|
"--with-boost=${boost.dev}" ]
|
||||||
(if guiSupport then "" else "--disable-gui")
|
++ optionals (!guiSupport) [ "--disable-gui" "--enable-systemd" ] # Also place qbittorrent-nox systemd service files
|
||||||
(if webuiSupport then "" else "--disable-webui")
|
++ optional (!webuiSupport) "--disable-webui"
|
||||||
] ++ optional debugSupport "--enable-debug";
|
++ optional debugSupport "--enable-debug";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Free Software alternative to µtorrent";
|
description = "Featureful free software BitTorrent client";
|
||||||
homepage = https://www.qbittorrent.org/;
|
homepage = https://www.qbittorrent.org/;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ viric ];
|
maintainers = with maintainers; [ Anton-Latukha viric ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user