@@ -0,0 +1,43 @@
1+{ stdenv, lib, fetchFromGitHub, cmake, extra-cmake-modules, pkgconfig, qmake
2+, libpthreadstubs, libxcb, libXdmcp, qtsvg, qttools, qtwebengine, qtx11extras, kwallet, openssl }:
3+
4+stdenv.mkDerivation rec {
5+ # Last qupvilla release is 2.1.2 so we add the .1 although it isn't actually a
6+ # release but it is basically 2.1.2 with the falkon name
7+ name = "falkon-${version}.1";
8+ version = "2.1.2";
9+
10+ src = fetchFromGitHub {
11+ owner = "KDE";
12+ repo = "falkon";
13+ rev = "eecaf2e9d6b572a7f7d2e6dc324e3d79b61c31db";
14+ sha256 = "01r5aw10jd0qz7xvad0cqzjbnsj7vwblh54wbq4x1m6xbkp6xcgy";
15+ };
16+
17+ preConfigure = ''
18+ export NONBLOCK_JS_DIALOGS=true
19+ export KDE_INTEGRATION=true
20+ export GNOME_INTEGRATION=false
21+ export FALKON_PREFIX=$out
22+ '';
23+
24+ dontUseCmakeConfigure = true;
25+
26+ buildInputs = [
27+ libpthreadstubs libxcb libXdmcp
28+ kwallet
29+ qtsvg qtwebengine qtx11extras
30+ ];
31+
32+ nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig qmake qttools ];
33+
34+ enableParallelBuilding = true;
35+
36+ meta = with stdenv.lib; {
37+ description = "QtWebEngine based cross-platform web browser";
38+ homepage = https://community.kde.org/Incubator/Projects/Falkon;
39+ license = licenses.gpl3;
40+ maintainers = with maintainers; [ peterhoeg ];
41+ platforms = platforms.unix;
42+ };
43+}