mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
Merge pull request #175089 from klemensn/qbittorrent-fix-wrap
qbittorrent: Wrap once, python is optional
This commit is contained in:
commit
5466ae6f3f
|
@ -1,4 +1,4 @@
|
|||
{ mkDerivation, lib, fetchFromGitHub, makeWrapper, pkg-config
|
||||
{ mkDerivation, lib, fetchFromGitHub, pkg-config
|
||||
, boost, libtorrent-rasterbar, qtbase, qttools, qtsvg
|
||||
, debugSupport ? false
|
||||
, guiSupport ? true, dbus ? null # GUI (disable to run headless)
|
||||
|
@ -24,7 +24,7 @@ mkDerivation rec {
|
|||
enableParallelBuilding = true;
|
||||
|
||||
# NOTE: 2018-05-31: CMake is working but it is not officially supported
|
||||
nativeBuildInputs = [ makeWrapper pkg-config ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ boost libtorrent-rasterbar qtbase qttools qtsvg ]
|
||||
++ optional guiSupport dbus # D(esktop)-Bus depends on GUI support
|
||||
|
@ -40,11 +40,7 @@ mkDerivation rec {
|
|||
++ optional (!webuiSupport) "--disable-webui"
|
||||
++ optional debugSupport "--enable-debug";
|
||||
|
||||
postInstall = "wrapProgram $out/bin/${
|
||||
if guiSupport
|
||||
then "qbittorrent"
|
||||
else "qbittorrent-nox"
|
||||
} --prefix PATH : ${makeBinPath [ python3 ]}";
|
||||
qtWrapperArgs = optional trackerSearch "--prefix PATH : ${makeBinPath [ python3 ]}";
|
||||
|
||||
meta = {
|
||||
description = "Featureful free software BitTorrent client";
|
||||
|
|
Loading…
Reference in a new issue