python310Packages.libretranslate: use python.sitePackages to be interpreter independent
This commit is contained in:
parent
8e284221f4
commit
ff0b33ddf3
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@
|
|||
, redis
|
||||
, prometheus-client
|
||||
, polib
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -69,7 +70,7 @@ buildPythonPackage rec {
|
|||
postInstall = ''
|
||||
# expose static files to be able to serve them via web-server
|
||||
mkdir -p $out/share/libretranslate
|
||||
ln -s $out/lib/python*/site-packages/libretranslate/static $out/share/libretranslate/static
|
||||
ln -s $out/${python.sitePackages}/libretranslate/static $out/share/libretranslate/static
|
||||
'';
|
||||
|
||||
doCheck = false; # needs network access
|
||||
|
|
Loading…
Reference in a new issue