about summary refs log tree commit diff
path: root/pkgs/applications/office/libreoffice/src-still/override.nix
blob: e309e800f21ebb9412b18e712585f5d3db21b218 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ lib, kdeIntegration, ... }:
attrs:
{
  postConfigure = attrs.postConfigure + ''
    sed -e '/CPPUNIT_TEST(Import_Export_Import);/d' -i './sw/qa/inc/swmodeltestbase.hxx'
  '';
  configureFlags = attrs.configureFlags ++ [
    (lib.enableFeature kdeIntegration "kf5")
  ];
  patches = [ ../xdg-open-brief.patch ];
  postPatch = attrs.postPatch + ''
    substituteInPlace shell/source/unix/exec/shellexec.cxx \
      --replace /usr/bin/xdg-open ${if kdeIntegration then "kde-open5" else "xdg-open"}
  '';
}