diff --git a/pkgs/applications/networking/p2p/tribler/default.nix b/pkgs/applications/networking/p2p/tribler/default.nix index 24796880fb23..4e02eb9f1e6a 100644 --- a/pkgs/applications/networking/p2p/tribler/default.nix +++ b/pkgs/applications/networking/p2p/tribler/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchsvn, pythonPackages, makeWrapper, nettools }: +{ stdenv, fetchsvn, pythonPackages, makeWrapper, nettools +, enablePlayer ? false, vlc ? null }: let rev = "24912"; in @@ -34,7 +35,10 @@ stdenv.mkDerivation { --set _TRIBLERPATH $out/share/tribler \ --set PYTHONPATH $out/share/tribler:$program_PYTHONPATH \ --run 'cd $_TRIBLERPATH' \ - --add-flags "-O $out/share/tribler/Tribler/Main/tribler.py" + --add-flags "-O $out/share/tribler/Tribler/Main/tribler.py" \ + ${stdenv.lib.optionalString enablePlayer '' + --prefix LD_LIBRARY_PATH : ${vlc}/lib + ''} ''; meta = {