mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
kodi.withPackages: include pillow and pycryptodome python dependencies
This commit is contained in:
parent
dd0d4cade8
commit
7a6720beee
@ -1,5 +1,10 @@
|
||||
{ lib, makeWrapper, buildEnv, kodi, addons }:
|
||||
|
||||
let
|
||||
# linux distros are supposed to provide pillow and pycryptodome
|
||||
requiredPythonPackages = with kodi.pythonPackages; [ pillow pycryptodome] ++ addons;
|
||||
in
|
||||
|
||||
buildEnv {
|
||||
name = "${kodi.name}-env";
|
||||
|
||||
@ -13,7 +18,7 @@ buildEnv {
|
||||
for exe in kodi{,-standalone}
|
||||
do
|
||||
makeWrapper ${kodi}/bin/$exe $out/bin/$exe \
|
||||
--prefix PYTHONPATH : ${kodi.pythonPackages.makePythonPath addons} \
|
||||
--prefix PYTHONPATH : ${kodi.pythonPackages.makePythonPath requiredPythonPackages} \
|
||||
--prefix KODI_HOME : $out/share/kodi \
|
||||
--prefix LD_LIBRARY_PATH ":" "${lib.makeLibraryPath
|
||||
(lib.concatMap
|
||||
|
Loading…
Reference in New Issue
Block a user