8 # whether to install odt2pdf/odt2doc/... symlinks to unoconv
9 installSymlinks ? true,
12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
20 sha256 = "1akx64686in8j8arl6vsgp2n3bv770q48pfv283c6fz6wf9p8fvr";
29 makeFlags=prefix="$out"
34 sed -i "s|/usr/bin/env python.*|${libreoffice-unwrapped.python.interpreter}|" "$out/bin/unoconv"
35 wrapProgram "$out/bin/unoconv" \
36 --set-default UNO_PATH "${libreoffice-unwrapped}/lib/libreoffice/program/"
38 + lib.optionalString installSymlinks ''
39 make install-links prefix="$out"
43 description = "Convert between any document format supported by LibreOffice/OpenOffice";
44 homepage = "http://dag.wieers.com/home-made/unoconv/";
45 license = licenses.gpl2Only;
46 platforms = platforms.linux;
47 maintainers = [ maintainers.bjornfor ];
48 mainProgram = "unoconv";