unoconv: fix reference to libreoffice (#47847)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, python3, libreoffice, asciidoc, makeWrapper
|
{ stdenv, fetchurl, python3, libreoffice-unwrapped, asciidoc, makeWrapper
|
||||||
# whether to install odt2pdf/odt2doc/... symlinks to unoconv
|
# whether to install odt2pdf/odt2doc/... symlinks to unoconv
|
||||||
, installSymlinks ? true
|
, installSymlinks ? true
|
||||||
}:
|
}:
|
||||||
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
sed -i "s|/usr/bin/env python.*|${python3}/bin/${python3.executable}|" "$out/bin/unoconv"
|
sed -i "s|/usr/bin/env python.*|${python3}/bin/${python3.executable}|" "$out/bin/unoconv"
|
||||||
wrapProgram "$out/bin/unoconv" --set UNO_PATH "${libreoffice}/lib/libreoffice/program/"
|
wrapProgram "$out/bin/unoconv" --set UNO_PATH "${libreoffice-unwrapped}/lib/libreoffice/program/"
|
||||||
'' + (if installSymlinks then ''
|
'' + (if installSymlinks then ''
|
||||||
make install-links prefix="$out"
|
make install-links prefix="$out"
|
||||||
'' else "");
|
'' else "");
|
||||||
|
|||||||
Reference in New Issue
Block a user