@ -5,21 +5,23 @@
, icu , boost , jdk , ant , libXext , libX11 , libXtst , libXi , cups
, libXinerama , openssl , gperf , cppunit , GConf , ORBit2 , poppler
, librsvg , gnome_vfs , gstreamer , gstPluginsBase , mesa
, autoconf , automake , openldap , postgresql , bash
, autoconf , automake , openldap , bash
, langs ? [ " e n - U S " " c a " " r u " " e o " " f r " " n l " " d e " " e n - G B " ]
, force ? false
} :
# ** Checking with hydra if it builds totally **
#if !force then
# throw ''The expression for libreoffice is still not ready.
# Set config.libreoffice.force = true; if you want to try it anyway.''
#else
let
langsSpaces = stdenv . lib . concatStringsSep " " langs ;
in
stdenv . mkDerivation rec {
name = " l i b r e o f f i c e - 3 . 5 . 0 . 3 " ;
srcs_download = import ./libreoffice-srcs.nix { inherit fetchurl ; } ;
src_translation = fetchurl {
url = " h t t p : / / d o w n l o a d . d o c u m e n t f o u n d a t i o n . o r g / l i b r e o f f i c e / s r c / 3 . 5 . 0 / l i b r e o f f i c e - t r a n s l a t i o n s - 3 . 5 . 0 . 3 . t a r . x z " ;
sha256 = " 0 k k 1 j b 4 a x j v k m g 2 2 y h x x 4 p 9 5 2 2 z i x 6 r r 5 c s 0 c 5 r x z l k m 6 3 q w 6 h 8 w " ;
} ;
src = fetchurl {
url = " h t t p : / / d o w n l o a d . d o c u m e n t f o u n d a t i o n . o r g / l i b r e o f f i c e / s r c / 3 . 5 . 0 / l i b r e o f f i c e - c o r e - 3 . 5 . 0 . 3 . t a r . x z " ;
sha256 = " 0 4 h v l j 6 w z b j 3 z j p f j q 9 7 5 m g d m f 9 0 2 y w y f 9 4 n x c v 0 6 7 a s g 8 3 q f c v r " ;
@ -27,14 +29,24 @@ stdenv.mkDerivation rec {
configureScript = " . / a u t o g e n . s h " ;
patches = [ ./disable-uimpress-test.patch ] ;
preConfigure = ''
tar xf $ src_translation
# I think libreoffice expects by default the translations in ./translations
mv libreoffice-translations-3.5.0.3/translations .
sed - i ' s , /bin/bash , $ { bash } /bin/bash , ' sysui/desktop/share/makefile.mk
sed - i ' s , /usr/bin/env bash , $ { bash } /bin/bash , ' bin/unpack-sources \
solenv/bin/install-gdb-printers solenv/bin/striplanguagetags.sh
sed - i ' s , /usr/bin/env perl , $ { perl } /bin/perl , ' solenv/bin/concat-deps.pl
sed - i ' s , /usr/bin/env perl , $ { perl } /bin/perl , ' solenv/bin/concat-deps.pl solenv/bin/ooinstall
sed - i ' s , ANT_OPTS + = " \( . * \) " , ANT_OPTS + = \ 1 , ' apache-commons/java /* / m a k e f i l e . m k
# Needed to find genccode
PATH = $ PATH:$ { icu } /sbin
export configureFlagsArray = ( " - - w i t h - l a n g = ${ langsSpaces } " )
'' ;
buildPhase = ''
@ -64,9 +76,6 @@ stdenv.mkDerivation rec {
'' ;
configureFlags = [
# Helpful, while testing the expression
" - - w i t h - n u m - c p u s = 4 "
" - - e n a b l e - v e r b o s e "
# Without these, configure does not finish
@ -91,6 +100,7 @@ stdenv.mkDerivation rec {
" - - d i s a b l e - k d e "
" - - d i s a b l e - k d e 4 "
" - - d i s a b l e - m o n o "
" - - d i s a b l e - p o s t g r e s q l - s d b c "
" - - w i t h - p a c k a g e - f o r m a t = n a t i v e "
" - - w i t h - j d k - h o m e = ${ jdk } "
" - - w i t h - a n t - h o m e = ${ ant } "
@ -130,7 +140,7 @@ stdenv.mkDerivation rec {
libXaw fontconfig libsndfile neon bison flex zip unzip gtk libmspack
getopt file jdk cairo which icu boost libXext libX11 libXtst libXi mesa
cups libXinerama openssl gperf GConf ORBit2 gnome_vfs gstreamer gstPluginsBase
ant autoconf openldap postgresql cppunit poppler librsvg automake
ant autoconf openldap cppunit poppler librsvg automake
] ;
meta = {