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 2019-08-25 09:15:13 +00:00 committed by Bjørn Forsman
parent d77104ae6e
commit 4b4d7aa38a

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"
'';