1{
2 stdenv,
3 mkDerivation,
4 lib,
5 cmake,
6 extra-cmake-modules,
7 pkg-config,
8 libpthreadstubs,
9 libxcb,
10 libXdmcp,
11 qtsvg,
12 qttools,
13 qtwebengine,
14 qtx11extras,
15 qtwayland,
16 wrapQtAppsHook,
17 kwallet,
18 kpurpose,
19 karchive,
20 kio,
21}:
22
23mkDerivation {
24 pname = "falkon";
25
26 preConfigure = ''
27 export NONBLOCK_JS_DIALOGS=true
28 export KDE_INTEGRATION=true
29 export GNOME_INTEGRATION=false
30 export FALKON_PREFIX=$out
31 '';
32
33 buildInputs = [
34 libpthreadstubs
35 libxcb
36 libXdmcp
37 qtsvg
38 qttools
39 qtwebengine
40 qtx11extras
41 kwallet
42 kpurpose
43 karchive
44 kio
45 ]
46 ++ lib.optionals stdenv.hostPlatform.isLinux [ qtwayland ];
47
48 nativeBuildInputs = [
49 cmake
50 extra-cmake-modules
51 pkg-config
52 qttools
53 wrapQtAppsHook
54 ];
55
56 meta = with lib; {
57 description = "QtWebEngine based cross-platform web browser";
58 mainProgram = "falkon";
59 homepage = "https://www.falkon.org";
60 license = licenses.gpl3;
61 maintainers = with maintainers; [ peterhoeg ];
62 platforms = platforms.unix;
63 };
64}