diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-07-12 16:44:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-12 16:44:14 +0200 |
commit | 2a6283db4565084726a3ab7575dbbc58268d5008 (patch) | |
tree | cc5379f93e8d0170d3d3d7b760ce087b7c8d3cdb | |
parent | 9f7c514c9cfaf174543907dfcffbc6497091166b (diff) | |
parent | ff0b33ddf3a54fc083d0b1ed7d1bcff164aa6203 (diff) |
Merge pull request #243063 from SuperSandro2000/libretranslate-site-packages
-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 |