From 4631d5e06e806fd9112edfc45c577918c1511b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Wed, 3 Nov 2021 08:01:17 +0100 Subject: [PATCH] odoo: add rtlcss depenency --- pkgs/applications/finance/odoo/default.nix | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/finance/odoo/default.nix b/pkgs/applications/finance/odoo/default.nix index aee699e85346..69acb43af861 100644 --- a/pkgs/applications/finance/odoo/default.nix +++ b/pkgs/applications/finance/odoo/default.nix @@ -3,19 +3,12 @@ , fetchurl , python3 , python3Packages +, nodePackages , wkhtmltopdf }: with python3Packages; -/* - -TODO: - For languages with right-to-left interface (such as Arabic or Hebrew), the package rtlcss is needed: - $ sudo npm install -g rtlcss - -*/ - buildPythonApplication rec { pname = "odoo"; @@ -40,12 +33,13 @@ buildPythonApplication rec { buildInputs = [ wkhtmltopdf + nodePackages.rtlcss ]; # needs some investigation doCheck = false; - makeWrapperArgs = [ "--prefix" "PATH" ":" "${wkhtmltopdf}/bin" ]; + makeWrapperArgs = [ "--prefix" "PATH" ":" "${lib.makeBinPath [ wkhtmltopdf nodePackages.rtlcss ]}" ]; propagatedBuildInputs = [ Babel