unoconv: allow UNO_PATH to be overridden

Upstream intends this to be overridable, so we should preserve that
property.
This commit is contained in:
Alyssa Ross
2023-06-07 15:04:23 +02:00
committed by Bjørn Forsman
parent d77104ae6e
commit 4b4d7aa38a
+2 -1
View File
@@ -25,7 +25,8 @@ stdenv.mkDerivation rec {
postInstall = ''
sed -i "s|/usr/bin/env python.*|${python3}/bin/${python3.executable}|" "$out/bin/unoconv"
wrapProgram "$out/bin/unoconv" --set UNO_PATH "${libreoffice-unwrapped}/lib/libreoffice/program/"
wrapProgram "$out/bin/unoconv" \
--set-default UNO_PATH "${libreoffice-unwrapped}/lib/libreoffice/program/"
'' + lib.optionalString installSymlinks ''
make install-links prefix="$out"
'';