@@ -1,402 +0,0 @@
1−{ stdenv, fetchurl, fetchpatch, pam, python3, libxslt, perl, ArchiveZip, gettext
2−, IOCompress, zlib, libjpeg, expat, freetype, libwpd
3−, libxml2, db, curl, fontconfig, libsndfile, neon
4−, bison, flex, zip, unzip, gtk3, gtk2, libmspack, getopt, file, cairo, which
5−, icu, boost, jdk, ant, cups, xorg, libcmis, fontforge
6−, openssl, gperf, cppunit, GConf, ORBit2, poppler, utillinux
7−, librsvg, gnome_vfs, libGLU, libGL, bsh, CoinMP, libwps, libabw, libmysqlclient
8−, autoconf, automake, openldap, bash, hunspell, librdf_redland, nss, nspr
9−, libwpg, dbus-glib, qt4, clucene_core, libcdr, lcms, vigra
10−, unixODBC, mdds, sane-backends, mythes, libexttextcat, libvisio
11−, fontsConf, pkgconfig, bluez5, libtool, carlito
12−, libatomic_ops, graphite2, harfbuzz, libodfgen, libzmf
13−, librevenge, libe-book, libmwaw, glm, glew, gst_all_1
14−, gdb, commonsLogging, librdf_rasqal, wrapGAppsHook
15−, gnome3, glib, ncurses, epoxy, gpgme
16−, langs ? [ "ca" "cs" "de" "en-GB" "en-US" "eo" "es" "fr" "hu" "it" "ja" "nl" "pl" "pt" "pt-BR" "ru" "sl" "zh-CN" ]
17−, withHelp ? true
18−, kdeIntegration ? false
19−}:
20−
21−let
22− primary-src = import ./still-primary-src.nix { inherit fetchurl; };
23−in
24−
25−let inherit (primary-src) major minor subdir version; in
26−
27−let
28− lib = stdenv.lib;
29− langsSpaces = lib.concatStringsSep " " langs;
30−
31− fetchSrc = {name, sha256}: fetchurl {
32− url = "https://download.documentfoundation.org/libreoffice/src/${subdir}/libreoffice-${name}-${version}.tar.xz";
33− inherit sha256;
34− };
35−
36− srcs = {
37− third_party =
38− map (x : ((fetchurl {inherit (x) url sha256 name;}) // {inherit (x) md5name md5;}))
39− ((import ./libreoffice-srcs-still.nix) ++ [
40− (rec {
41− name = "unowinreg.dll";
42− url = "https://dev-www.libreoffice.org/extern/${md5name}";
43− sha256 = "1infwvv1p6i21scywrldsxs22f62x85mns4iq8h6vr6vlx3fdzga";
44− md5 = "185d60944ea767075d27247c3162b3bc";
45− md5name = "${md5}-${name}";
46− })
47− ]);
48−
49− translations = fetchSrc {
50− name = "translations";
51− sha256 = "1l5v9bb7n9s6i24q4mdyqyp5v4f8iy0a9dmpgw649vngj1zxdxfh";
52− };
53−
54− # TODO: dictionaries
55−
56− help = fetchSrc {
57− name = "help";
58− sha256 = "0h4jvdbvxvgy7w2bzf4k4knqbshlr4v2ic2jsaygy52530z9xifz";
59− };
60−
61− };
62−in stdenv.mkDerivation rec {
63− pname = "libreoffice";
64− inherit version;
65−
66− inherit (primary-src) src;
67−
68− outputs = [ "out" "dev" ];
69−
70− # For some reason librdf_redland sometimes refers to rasqal.h instead
71− # of rasqal/rasqal.h
72− NIX_CFLAGS_COMPILE = [ "-I${librdf_rasqal}/include/rasqal" ];
73−
74− patches = [
75− ./xdg-open-brief.patch
76−
77− # Poppler-0.82 compatibility
78− # https://gerrit.libreoffice.org/81545
79− (fetchpatch {
80− url = "https://github.com/LibreOffice/core/commit/2eadd46ab81058087af95bdfc1fea28fcdb65998.patch";
81− sha256 = "1mpipdfxvixjziizbhfbpybpzlg1ijw7s0yqjpmq5d7pf3pvkm4n";
82− })
83− # Poppler-0.83 compatibility
84− # https://gerrit.libreoffice.org/84384
85− (fetchpatch {
86− url = "https://github.com/LibreOffice/core/commit/9065cd8d9a19864f6b618f2dc10daf577badd9ee.patch";
87− sha256 = "0nd0gck8ra3ffw936a7ri0s6a0ii5cyglnhip2prcjh5yf7vw2i2";
88− })
89− ];
90−
91− tarballPath = "external/tarballs";
92−
93− postUnpack = ''
94− mkdir -v $sourceRoot/${tarballPath}
95− '' + (lib.flip lib.concatMapStrings srcs.third_party (f: ''
96− ln -sfv ${f} $sourceRoot/${tarballPath}/${f.md5name}
97− ln -sfv ${f} $sourceRoot/${tarballPath}/${f.name}
98− ''))
99− + ''
100− ln -sv ${srcs.help} $sourceRoot/${tarballPath}/${srcs.help.name}
101− ln -svf ${srcs.translations} $sourceRoot/${tarballPath}/${srcs.translations.name}
102− tar -xf ${srcs.help}
103− tar -xf ${srcs.translations}
104− '';
105−
106− postPatch = ''
107− sed -e 's@/usr/bin/xdg-open@xdg-open@g' -i shell/source/unix/exec/shellexec.cxx
108−
109− # configure checks for header 'gpgme++/gpgmepp_version.h',
110− # and if it is found (no matter where) uses a hardcoded path
111− # in what presumably is an effort to make it possible to write
112− # '#include <context.h>' instead of '#include <gpgmepp/context.h>'.
113− #
114− # Fix this path to point to where the headers can actually be found instead.
115− substituteInPlace configure.ac --replace \
116− 'GPGMEPP_CFLAGS=-I/usr/include/gpgme++' \
117− 'GPGMEPP_CFLAGS=-I${gpgme.dev}/include/gpgme++'
118− '';
119−
120− QT4DIR = qt4;
121−
122− preConfigure = ''
123− configureFlagsArray=(
124− "--with-parallelism=$NIX_BUILD_CORES"
125− "--with-lang=${langsSpaces}"
126− );
127−
128− chmod a+x ./bin/unpack-sources
129− patchShebangs .
130−
131− # This is required as some cppunittests require fontconfig configured
132− cp "${fontsConf}" fonts.conf
133− sed -e '/include/i<include>${carlito}/etc/fonts/conf.d</include>' -i fonts.conf
134− export FONTCONFIG_FILE="$PWD/fonts.conf"
135−
136− NOCONFIGURE=1 ./autogen.sh
137− '';
138−
139− postConfigure =
140− # fetch_Download_item tries to interpret the name as a variable name, let it do so...
141− ''
142− sed -e '1ilibreoffice-translations-${version}.tar.xz=libreoffice-translations-${version}.tar.xz' -i Makefile
143− sed -e '1ilibreoffice-help-${version}.tar.xz=libreoffice-help-${version}.tar.xz' -i Makefile
144− ''
145− # Test fixups
146− # May need to be revisited/pruned, left alone for now.
147− + ''
148− # unit test sd_tiledrendering seems to be fragile
149− # https://nabble.documentfoundation.org/libreoffice-5-0-failure-in-CUT-libreofficekit-tiledrendering-td4150319.html
150− echo > ./sd/CppunitTest_sd_tiledrendering.mk
151− sed -e /CppunitTest_sd_tiledrendering/d -i sd/Module_sd.mk
152− # Pivot chart tests. Fragile.
153− sed -e '/CPPUNIT_TEST(testRoundtrip)/d' -i chart2/qa/extras/PivotChartTest.cxx
154− sed -e '/CPPUNIT_TEST(testPivotTableMedianODS)/d' -i sc/qa/unit/pivottable_filters_test.cxx
155− # one more fragile test?
156− sed -e '/CPPUNIT_TEST(testTdf96536);/d' -i sw/qa/extras/uiwriter/uiwriter.cxx
157− # this I actually hate, this should be a data consistency test!
158− sed -e '/CPPUNIT_TEST(testTdf115013);/d' -i sw/qa/extras/uiwriter/uiwriter.cxx
159− # rendering-dependent test
160− sed -e '/CPPUNIT_ASSERT_EQUAL(11148L, pOleObj->GetLogicRect().getWidth());/d ' -i sc/qa/unit/subsequent_filters-test.cxx
161− # tilde expansion in path processing checks the existence of $HOME
162− sed -e 's@OString sSysPath("~/tmp");@& return ; @' -i sal/qa/osl/file/osl_File.cxx
163− # fails on systems using ZFS, see https://github.com/NixOS/nixpkgs/issues/19071
164− sed -e '/CPPUNIT_TEST(getSystemPathFromFileURL_005);/d' -i './sal/qa/osl/file/osl_File.cxx'
165− # rendering-dependent: on my computer the test table actually doesn't fit…
166− # interesting fact: test disabled on macOS by upstream
167− sed -re '/DECLARE_WW8EXPORT_TEST[(]testTableKeep, "tdf91083.odt"[)]/,+5d' -i ./sw/qa/extras/ww8export/ww8export.cxx
168− # Segfault on DB access — maybe temporarily acceptable for a new version of Fresh?
169− sed -e 's/CppunitTest_dbaccess_empty_stdlib_save//' -i ./dbaccess/Module_dbaccess.mk
170− # one more fragile test?
171− sed -e '/CPPUNIT_TEST(testTdf77014);/d' -i sw/qa/extras/uiwriter/uiwriter.cxx
172− # rendering-dependent tests
173− sed -e '/CPPUNIT_TEST(testCustomColumnWidthExportXLSX)/d' -i sc/qa/unit/subsequent_export-test.cxx
174− sed -e '/CPPUNIT_TEST(testColumnWidthExportFromODStoXLSX)/d' -i sc/qa/unit/subsequent_export-test.cxx
175− sed -e '/CPPUNIT_TEST(testChartImportXLS)/d' -i sc/qa/unit/subsequent_filters-test.cxx
176− sed -e '/CPPUNIT_TEST(testLegacyCellAnchoredRotatedShape)/d' -i sc/qa/unit/filters-test.cxx
177− sed -zre 's/DesktopLOKTest::testGetFontSubset[^{]*[{]/& return; /' -i desktop/qa/desktop_lib/test_desktop_lib.cxx
178− sed -z -r -e 's/DECLARE_OOXMLEXPORT_TEST[(]testFlipAndRotateCustomShape,[^)]*[)].[{]/& return;/' -i sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
179− sed -z -r -e 's/DECLARE_OOXMLEXPORT_TEST[(]tdf105490_negativeMargins,[^)]*[)].[{]/& return;/' -i sw/qa/extras/ooxmlexport/ooxmlexport9.cxx
180− sed -z -r -e 's/DECLARE_OOXMLIMPORT_TEST[(]testTdf112443,[^)]*[)].[{]/& return;/' -i sw/qa/extras/ooxmlimport/ooxmlimport.cxx
181− sed -z -r -e 's/DECLARE_RTFIMPORT_TEST[(]testTdf108947,[^)]*[)].[{]/& return;/' -i sw/qa/extras/rtfimport/rtfimport.cxx
182− # not sure about this fragile test
183− sed -z -r -e 's/DECLARE_OOXMLEXPORT_TEST[(]testTDF87348,[^)]*[)].[{]/& return;/' -i sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
184− # bunch of new Fresh failures. Sigh.
185− sed -e '/CPPUNIT_TEST(testDocumentLayout);/d' -i './sd/qa/unit/import-tests.cxx'
186− sed -e '/CPPUNIT_TEST(testErrorBarDataRangeODS);/d' -i './chart2/qa/extras/chart2export.cxx'
187− sed -e '/CPPUNIT_TEST(testLabelStringODS);/d' -i './chart2/qa/extras/chart2export.cxx'
188− sed -e '/CPPUNIT_TEST(testAxisNumberFormatODS);/d' -i './chart2/qa/extras/chart2export.cxx'
189− sed -e '/CPPUNIT_TEST(testBackgroundImage);/d' -i './sd/qa/unit/export-tests.cxx'
190− sed -e '/CPPUNIT_TEST(testFdo84043);/d' -i './sd/qa/unit/export-tests.cxx'
191− sed -e '/CPPUNIT_TEST(testTdf97630);/d' -i './sd/qa/unit/export-tests.cxx'
192− sed -e '/CPPUNIT_TEST(testTdf80020);/d' -i './sd/qa/unit/export-tests.cxx'
193− sed -e '/CPPUNIT_TEST(testTdf62176);/d' -i './sd/qa/unit/export-tests.cxx'
194− sed -e '/CPPUNIT_TEST(testTransparentBackground);/d' -i './sd/qa/unit/export-tests.cxx'
195− sed -e '/CPPUNIT_TEST(testEmbeddedPdf);/d' -i './sd/qa/unit/export-tests.cxx'
196− sed -e '/CPPUNIT_TEST(testEmbeddedText);/d' -i './sd/qa/unit/export-tests.cxx'
197− sed -e '/CPPUNIT_TEST(testTdf98477);/d' -i './sd/qa/unit/export-tests.cxx'
198− sed -e '/CPPUNIT_TEST(testAuthorField);/d' -i './sd/qa/unit/export-tests-ooxml2.cxx'
199− sed -e '/CPPUNIT_TEST(testTdf50499);/d' -i './sd/qa/unit/export-tests.cxx'
200− sed -e '/CPPUNIT_TEST(testTdf100926);/d' -i './sd/qa/unit/export-tests.cxx'
201− sed -e '/CPPUNIT_TEST(testPageWithTransparentBackground);/d' -i './sd/qa/unit/export-tests.cxx'
202− sed -e '/CPPUNIT_TEST(testTextRotation);/d' -i './sd/qa/unit/export-tests.cxx'
203− sed -e '/CPPUNIT_TEST(testTdf113818);/d' -i './sd/qa/unit/export-tests.cxx'
204− sed -e '/CPPUNIT_TEST(testTdf119629);/d' -i './sd/qa/unit/export-tests.cxx'
205− sed -e '/CPPUNIT_TEST(testTdf113822);/d' -i './sd/qa/unit/export-tests.cxx'
206− sed -e '/CPPUNIT_TEST(test);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
207− sed -e '/CPPUNIT_TEST(testConditionalFormatExportODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
208− sed -e '/CPPUNIT_TEST(testProtectionKeyODS_UTF16LErtlSHA1);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
209− sed -e '/CPPUNIT_TEST(testProtectionKeyODS_UTF8SHA1);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
210− sed -e '/CPPUNIT_TEST(testProtectionKeyODS_UTF8SHA256ODF12);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
211− sed -e '/CPPUNIT_TEST(testProtectionKeyODS_UTF8SHA256W3C);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
212− sed -e '/CPPUNIT_TEST(testProtectionKeyODS_XL_SHA1);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
213− sed -e '/CPPUNIT_TEST(testColorScaleExportODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
214− sed -e '/CPPUNIT_TEST(testDataBarExportODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
215− sed -e '/CPPUNIT_TEST(testNamedRangeBugfdo62729);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
216− sed -e '/CPPUNIT_TEST(testRichTextExportODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
217− sed -e '/CPPUNIT_TEST(testFormulaRefSheetNameODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
218− sed -e '/CPPUNIT_TEST(testCellValuesExportODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
219− sed -e '/CPPUNIT_TEST(testCellNoteExportODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
220− sed -e '/CPPUNIT_TEST(testFormatExportODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
221− sed -e '/CPPUNIT_TEST(testEmbeddedChartODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
222− sed -e '/CPPUNIT_TEST(testCellAnchoredGroupXLS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
223− sed -e '/CPPUNIT_TEST(testCeilingFloorODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
224− sed -e '/CPPUNIT_TEST(testRelativePathsODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
225− sed -e '/CPPUNIT_TEST(testSheetProtectionODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
226− sed -e '/CPPUNIT_TEST(testSwappedOutImageExport);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
227− sed -e '/CPPUNIT_TEST(testLinkedGraphicRT);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
228− sed -e '/CPPUNIT_TEST(testImageWithSpecialID);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
229− sed -e '/CPPUNIT_TEST(testAbsNamedRangeHTML);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
230− sed -e '/CPPUNIT_TEST(testMoveCellAnchoredShapesODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
231− sed -e '/CPPUNIT_TEST(testRefStringUnspecified);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
232− sed -e '/CPPUNIT_TEST(testHeaderImageODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
233− sed -e '/CPPUNIT_TEST(testTdf88657ODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
234− sed -e '/CPPUNIT_TEST(testExponentWithoutSignFormatXLSX);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
235− sed -e '/CPPUNIT_TEST(testHiddenRepeatedRowsODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
236− sed -e '/CPPUNIT_TEST(testHyperlinkTargetFrameODS);/d' -i './sc/qa/unit/subsequent_export-test.cxx'
237− sed -e '/CPPUNIT_TEST(testTdf105739);/d' -i './sd/qa/unit/export-tests-ooxml2.cxx'
238− sed -e '/CPPUNIT_TEST(testPageBitmapWithTransparency);/d' -i './sd/qa/unit/export-tests-ooxml2.cxx'
239− sed -e '/CPPUNIT_TEST(testTdf115005);/d' -i './sd/qa/unit/export-tests-ooxml2.cxx'
240− sed -e '/CPPUNIT_TEST(testTdf115005_FallBack_Images_On);/d' -i './sd/qa/unit/export-tests-ooxml2.cxx'
241− sed -e '/CPPUNIT_TEST(testTdf115005_FallBack_Images_Off);/d' -i './sd/qa/unit/export-tests-ooxml2.cxx'
242− sed -e '/CPPUNIT_TEST(testTdf44774);/d' -i './sd/qa/unit/misc-tests.cxx'
243− sed -e '/CPPUNIT_TEST(testTdf38225);/d' -i './sd/qa/unit/misc-tests.cxx'
244− sed -e '/CPPUNIT_TEST(testAuthorField);/d' -i './sd/qa/unit/export-tests-ooxml2.cxx'
245− sed -e '/CPPUNIT_TEST(testAuthorField);/d' -i './sd/qa/unit/export-tests.cxx'
246− sed -e '/CPPUNIT_TEST(testFdo85554);/d' -i './sw/qa/extras/uiwriter/uiwriter.cxx'
247− sed -e '/CPPUNIT_TEST(testEmbeddedDataSource);/d' -i './sw/qa/extras/uiwriter/uiwriter.cxx'
248− sed -e '/CPPUNIT_TEST(testTdf96479);/d' -i './sw/qa/extras/uiwriter/uiwriter.cxx'
249− sed -e '/CPPUNIT_TEST(testInconsistentBookmark);/d' -i './sw/qa/extras/uiwriter/uiwriter.cxx'
250− sed -e '/CPPUNIT_TEST(Import_Export_Import);/d' -i './sw/qa/extras/inc/swmodeltestbase.hxx'
251− sed -e "s/DECLARE_SW_ROUNDTRIP_TEST(\([_a-zA-Z0-9.]\+\)[, ].*, *\([_a-zA-Z0-9.]\+\))/class \\1: public \\2 { public: void verify() override; }; void \\1::verify() /" -i "sw/qa/extras/ooxmlexport/ooxmlexport9.cxx"
252− sed -e "s/DECLARE_SW_ROUNDTRIP_TEST(\([_a-zA-Z0-9.]\+\)[, ].*, *\([_a-zA-Z0-9.]\+\))/class \\1: public \\2 { public: void verify() override; }; void \\1::verify() /" -i "sw/qa/extras/ooxmlexport/ooxmlencryption.cxx"
253− sed -e "s/DECLARE_SW_ROUNDTRIP_TEST(\([_a-zA-Z0-9.]\+\)[, ].*, *\([_a-zA-Z0-9.]\+\))/class \\1: public \\2 { public: void verify() override; }; void \\1::verify() /" -i "sw/qa/extras/odfexport/odfexport.cxx"
254− sed -e "s/DECLARE_SW_ROUNDTRIP_TEST(\([_a-zA-Z0-9.]\+\)[, ].*, *\([_a-zA-Z0-9.]\+\))/class \\1: public \\2 { public: void verify() override; }; void \\1::verify() /" -i "sw/qa/extras/unowriter/unowriter.cxx"
255− ''
256− # This to avoid using /lib:/usr/lib at linking
257− + ''
258− sed -i '/gb_LinkTarget_LDFLAGS/{ n; /rpath-link/d;}' solenv/gbuild/platform/unxgcc.mk
259−
260− find -name "*.cmd" -exec sed -i s,/lib:/usr/lib,, {} \;
261− '';
262−
263− makeFlags = "SHELL=${bash}/bin/bash";
264−
265− enableParallelBuilding = true;
266−
267− buildPhase = ''
268− make build-nocheck
269− '';
270−
271− doCheck = true;
272−
273− # It installs only things to $out/lib/libreoffice
274− postInstall = ''
275− mkdir -p $out/bin $out/share/desktop
276−
277− mkdir -p "$out/share/gsettings-schemas/collected-for-libreoffice/glib-2.0/schemas/"
278−
279− for a in sbase scalc sdraw smath swriter simpress soffice; do
280− ln -s $out/lib/libreoffice/program/$a $out/bin/$a
281− done
282−
283− ln -s $out/bin/soffice $out/bin/libreoffice
284− ln -s $out/lib/libreoffice/share/xdg $out/share/applications
285−
286− for f in $out/share/applications/*.desktop; do
287− substituteInPlace "$f" --replace "Exec=libreofficedev${major}.${minor}" "Exec=libreoffice"
288− substituteInPlace "$f" --replace "Exec=libreoffice${major}.${minor}" "Exec=libreoffice"
289− substituteInPlace "$f" --replace "Exec=libreoffice" "Exec=libreoffice"
290− done
291−
292− cp -r sysui/desktop/icons "$out/share"
293− sed -re 's@Icon=libreoffice(dev)?[0-9.]*-?@Icon=@' -i "$out/share/applications/"*.desktop
294−
295− mkdir -p $dev
296− cp -r include $dev
297− '';
298−
299− configureFlags = [
300− (if withHelp then "" else "--without-help")
301− "--with-boost=${boost.dev}"
302− "--with-boost-libdir=${boost.out}/lib"
303− "--with-beanshell-jar=${bsh}"
304− "--with-vendor=NixOS"
305− "--with-commons-logging-jar=${commonsLogging}/share/java/commons-logging-1.2.jar"
306− "--disable-report-builder"
307− "--disable-online-update"
308− "--enable-python=system"
309− "--enable-dbus"
310− "--enable-release-build"
311− (lib.enableFeature kdeIntegration "kde4")
312− "--enable-epm"
313− "--with-jdk-home=${jdk.home}"
314− "--with-ant-home=${ant}/lib/ant"
315− "--with-system-cairo"
316− "--with-system-libs"
317− "--with-system-headers"
318− "--with-system-openssl"
319− "--with-system-libabw"
320− "--with-system-libcmis"
321− "--with-system-libwps"
322− "--with-system-openldap"
323− "--with-system-coinmp"
324−
325− "--with-alloc=system"
326−
327− # Without these, configure does not finish
328− "--without-junit"
329−
330− "--disable-libnumbertext" # system-libnumbertext"
331−
332− # We do tarball prefetching ourselves
333− "--disable-fetch-external"
334− "--enable-build-opensymbol"
335−
336− # I imagine this helps. Copied from go-oo.
337− # Modified on every upgrade, though
338− "--disable-odk"
339− "--disable-postgresql-sdbc"
340− "--disable-firebird-sdbc"
341− "--without-fonts"
342− "--without-myspell-dicts"
343− "--without-doxygen"
344−
345− # TODO: package these as system libraries
346− "--with-system-beanshell"
347− "--without-system-hsqldb"
348− "--without-system-altlinuxhyph"
349− "--without-system-lpsolve"
350− "--without-system-libetonyek"
351− "--without-system-libfreehand"
352− "--without-system-liblangtag"
353− "--without-system-libmspub"
354− "--without-system-libpagemaker"
355− "--without-system-libstaroffice"
356− "--without-system-libepubgen"
357− "--without-system-libqxp"
358− "--without-system-mdds"
359− # https://github.com/NixOS/nixpkgs/commit/5c5362427a3fa9aefccfca9e531492a8735d4e6f
360− "--without-system-orcus"
361− "--without-system-xmlsec"
362− ];
363−
364− checkPhase = ''
365− make unitcheck
366− make slowcheck
367− '';
368−
369− nativeBuildInputs = [ wrapGAppsHook gdb fontforge autoconf automake bison pkgconfig libtool ];
370−
371− buildInputs = with xorg;
372− [ ant ArchiveZip boost cairo clucene_core
373− IOCompress cppunit cups curl db dbus-glib expat file flex fontconfig
374− freetype GConf getopt gnome_vfs gperf gtk3 gtk2
375− hunspell icu jdk lcms libcdr libexttextcat unixODBC libjpeg
376− libmspack librdf_redland librsvg libsndfile libvisio libwpd libwpg libX11
377− libXaw libXext libXi libXinerama libxml2 libxslt libXtst
378− libXdmcp libpthreadstubs libGLU libGL mythes gst_all_1.gstreamer
379− gst_all_1.gst-plugins-base glib libmysqlclient
380− neon nspr nss openldap openssl ORBit2 pam perl poppler
381− python3 sane-backends unzip vigra which zip zlib
382− mdds bluez5 libcmis libwps libabw libzmf
383− libxshmfence libatomic_ops graphite2 harfbuzz gpgme utillinux
384− librevenge libe-book libmwaw glm glew ncurses epoxy
385− libodfgen CoinMP librdf_rasqal gnome3.adwaita-icon-theme gettext
386− ]
387− ++ lib.optional kdeIntegration kdelibs4;
388−
389− passthru = {
390− inherit srcs jdk;
391− };
392−
393− requiredSystemFeatures = [ "big-parallel" ];
394−
395− meta = with lib; {
396− description = "Comprehensive, professional-quality productivity suite (Still/Stable release)";
397− homepage = https://libreoffice.org/;
398− license = licenses.lgpl3;
399− maintainers = with maintainers; [ raskin ];
400− platforms = platforms.linux;
401− };
402−}