2020-04-24 23:36:52 +00:00
|
|
|
{ qtModule, stdenv, lib, fetchurl
|
|
|
|
, qtbase, qtdeclarative, qtlocation, qtmultimedia, qtsensors, qtwebchannel
|
2021-02-13 14:23:35 +00:00
|
|
|
, fontconfig, libwebp, libxml2, libxslt
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlite, systemd, glib, gst_all_1, cmake
|
2024-04-21 15:54:59 +00:00
|
|
|
, bison, flex, gdb, gperf, perl, pkg-config, python3, ruby
|
2021-08-22 07:53:02 +00:00
|
|
|
, ICU, OpenGL
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
hyphen = stdenv.mkDerivation rec {
|
2021-08-22 07:53:02 +00:00
|
|
|
pname = "hyphen";
|
|
|
|
version = "2.8.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-08-22 07:53:02 +00:00
|
|
|
url = "http://dev-www.libreoffice.org/src/5ade6ae2a99bc1e9e57031ca88d36dad-hyphen-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "304636d4eccd81a14b6914d07b84c79ebb815288c76fe027b9ebff6ff24d5705";
|
|
|
|
};
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests
|
|
|
|
'';
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
qtModule {
|
2021-05-28 09:39:13 +00:00
|
|
|
pname = "qtwebkit";
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [ qtbase qtdeclarative qtlocation qtsensors qtwebchannel ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optional stdenv.hostPlatform.isDarwin qtmultimedia;
|
2023-01-20 10:41:00 +00:00
|
|
|
buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base hyphen ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ ICU OpenGL ];
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ bison flex gdb gperf perl pkg-config python3 ruby cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
cmakeFlags = [ "-DPORT=Qt" ]
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2021-08-22 07:53:02 +00:00
|
|
|
"-DQt5Multimedia_DIR=${lib.getDev qtmultimedia}/lib/cmake/Qt5Multimedia"
|
|
|
|
"-DQt5MultimediaWidgets_DIR=${lib.getDev qtmultimedia}/lib/cmake/Qt5MultimediaWidgets"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-DMACOS_FORCE_SYSTEM_XML_LIBRARIES=OFF"
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString ([
|
2021-08-22 07:53:02 +00:00
|
|
|
# with gcc7 this warning blows the log over Hydra's limit
|
|
|
|
"-Wno-expansion-to-defined"
|
|
|
|
]
|
|
|
|
# with gcc8, -Wclass-memaccess became part of -Wall and this too exceeds the logging limit
|
|
|
|
++ lib.optional stdenv.cc.isGNU "-Wno-class-memaccess"
|
|
|
|
# with clang this warning blows the log over Hydra's limit
|
2024-09-26 11:04:55 +00:00
|
|
|
++ lib.optional stdenv.hostPlatform.isDarwin "-Wno-inconsistent-missing-override"
|
|
|
|
++ lib.optional (!stdenv.hostPlatform.isDarwin) ''-DNIXPKGS_LIBUDEV="${lib.getLib systemd}/lib/libudev"'');
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false; # fails 13 out of 13 tests (ctest)
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
# remove forbidden references to $TMPDIR
|
2024-09-26 11:04:55 +00:00
|
|
|
preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
|
2023-08-22 20:05:09 +00:00
|
|
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/libexec/*
|
2021-08-22 07:53:02 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
meta = {
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ abbradar periklis ];
|
2022-11-21 17:40:18 +00:00
|
|
|
knownVulnerabilities = [
|
|
|
|
"QtWebkit upstream is unmaintained and receives no security updates, see https://blogs.gnome.org/mcatanzaro/2022/11/04/stop-using-qtwebkit/"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|