diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-07-12 14:04:51 +0200 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-07-12 14:04:51 +0200 |
commit | ff0b33ddf3a54fc083d0b1ed7d1bcff164aa6203 (patch) | |
tree | a7dc0abff0f797d5fa742b5cffbc3ebe9091bdb4 | |
parent | 8e284221f403c5579d02190ad2bc06d78576dfe2 (diff) |
python310Packages.libretranslate: use python.sitePackages to be interpreter independent
-rw-r--r-- | pkgs/development/python-modules/libretranslate/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/libretranslate/default.nix b/pkgs/development/python-modules/libretranslate/default.nix index 61dab6b8e7308..12e33f45895f6 100644 --- a/pkgs/development/python-modules/libretranslate/default.nix +++ b/pkgs/development/python-modules/libretranslate/default.nix @@ -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 |