From ff0b33ddf3a54fc083d0b1ed7d1bcff164aa6203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 12 Jul 2023 14:04:51 +0200 Subject: [PATCH] python310Packages.libretranslate: use python.sitePackages to be interpreter independent --- pkgs/development/python-modules/libretranslate/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/libretranslate/default.nix b/pkgs/development/python-modules/libretranslate/default.nix index 61dab6b8e730..12e33f45895f 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