p2p: cleanup
This commit is contained in:
parent
a38dd8cca7
commit
bb0e23b7bb
@ -19,40 +19,41 @@ stdenv.mkDerivation rec {
|
|||||||
python3Packages.python
|
python3Packages.python
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonPath = [
|
pythonPath = with python3Packages; [
|
||||||
python3Packages.libtorrent-rasterbar
|
libtorrent-rasterbar
|
||||||
python3Packages.twisted
|
twisted
|
||||||
python3Packages.netifaces
|
netifaces
|
||||||
python3Packages.pycrypto
|
pycrypto
|
||||||
python3Packages.pyasn1
|
pyasn1
|
||||||
python3Packages.requests
|
requests
|
||||||
python3Packages.m2crypto
|
m2crypto
|
||||||
python3Packages.pyqt5
|
pyqt5
|
||||||
python3Packages.chardet
|
chardet
|
||||||
python3Packages.cherrypy
|
cherrypy
|
||||||
python3Packages.cryptography
|
cryptography
|
||||||
python3Packages.libnacl
|
libnacl
|
||||||
python3Packages.configobj
|
configobj
|
||||||
python3Packages.decorator
|
decorator
|
||||||
python3Packages.feedparser
|
feedparser
|
||||||
python3Packages.service-identity
|
service-identity
|
||||||
python3Packages.psutil
|
psutil
|
||||||
python3Packages.pillow
|
pillow
|
||||||
python3Packages.networkx
|
networkx
|
||||||
python3Packages.pony
|
pony
|
||||||
python3Packages.lz4
|
lz4
|
||||||
python3Packages.pyqtgraph
|
pyqtgraph
|
||||||
|
|
||||||
# there is a BTC feature, but it requires some unclear version of
|
# there is a BTC feature, but it requires some unclear version of
|
||||||
# bitcoinlib, so this doesn't work right now.
|
# bitcoinlib, so this doesn't work right now.
|
||||||
# python3Packages.bitcoinlib
|
# bitcoinlib
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
${stdenv.lib.optionalString enablePlayer ''
|
${stdenv.lib.optionalString enablePlayer ''
|
||||||
substituteInPlace "./TriblerGUI/vlc.py" --replace "ctypes.CDLL(p)" "ctypes.CDLL('${libvlc}/lib/libvlc.so')"
|
substituteInPlace "./TriblerGUI/vlc.py" --replace "ctypes.CDLL(p)" "ctypes.CDLL('${libvlc}/lib/libvlc.so')"
|
||||||
substituteInPlace "./TriblerGUI/widgets/videoplayerpage.py" --replace "if vlc and vlc.plugin_path" "if vlc"
|
substituteInPlace "./TriblerGUI/widgets/videoplayerpage.py" \
|
||||||
substituteInPlace "./TriblerGUI/widgets/videoplayerpage.py" --replace "os.environ['VLC_PLUGIN_PATH'] = vlc.plugin_path" "os.environ['VLC_PLUGIN_PATH'] = '${libvlc}/lib/vlc/plugins'"
|
--replace "if vlc and vlc.plugin_path" "if vlc" \
|
||||||
|
--replace "os.environ['VLC_PLUGIN_PATH'] = vlc.plugin_path" "os.environ['VLC_PLUGIN_PATH'] = '${libvlc}/lib/vlc/plugins'"
|
||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user