2020-05-21 17:28:29 +02:00
|
|
|
{ stdenv, mkDerivation, lib, fetchFromGitHub, fetchpatch
|
2019-08-29 09:33:37 +02:00
|
|
|
, cmake, extra-cmake-modules, pkgconfig, qmake
|
2018-11-05 22:12:25 +01:00
|
|
|
, libpthreadstubs, libxcb, libXdmcp
|
|
|
|
, qtsvg, qttools, qtwebengine, qtx11extras
|
2020-06-03 11:12:46 +02:00
|
|
|
, qtwayland, wrapQtAppsHook
|
2018-11-05 22:12:25 +01:00
|
|
|
, kwallet
|
|
|
|
}:
|
2017-09-11 12:08:45 +02:00
|
|
|
|
2019-08-29 09:33:37 +02:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "falkon";
|
2019-03-21 22:08:18 +01:00
|
|
|
version = "3.1.0";
|
2017-09-11 12:08:45 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KDE";
|
|
|
|
repo = "falkon";
|
2018-03-05 07:37:23 +01:00
|
|
|
rev = "v${version}";
|
2019-03-21 22:08:18 +01:00
|
|
|
sha256 = "1w64slh9wpcfi4v7ds9wci1zvwh0dh787ndpi6hd4kmdgnswvsw7";
|
2017-09-11 12:08:45 +02:00
|
|
|
};
|
|
|
|
|
2020-05-21 17:28:29 +02:00
|
|
|
patches = [
|
|
|
|
# fixes build with qt5 5.14
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/KDE/falkon/commit/bbde5c6955c43bc744ed2c4024598495de908f2a.diff";
|
|
|
|
sha256 = "0f7qcddvvdnij3di0acg7jwvwfwyd0xizlav4wccclbj8x7qp5ld";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-09-11 12:08:45 +02:00
|
|
|
preConfigure = ''
|
|
|
|
export NONBLOCK_JS_DIALOGS=true
|
|
|
|
export KDE_INTEGRATION=true
|
|
|
|
export GNOME_INTEGRATION=false
|
|
|
|
export FALKON_PREFIX=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpthreadstubs libxcb libXdmcp
|
2018-11-05 22:12:25 +01:00
|
|
|
qtsvg qttools qtwebengine qtx11extras
|
2017-09-11 12:08:45 +02:00
|
|
|
kwallet
|
2018-11-05 22:12:25 +01:00
|
|
|
] ++ lib.optionals stdenv.isLinux [ qtwayland ];
|
2017-09-11 12:08:45 +02:00
|
|
|
|
2020-06-03 11:12:46 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
pkgconfig
|
|
|
|
qmake
|
|
|
|
qttools
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2017-09-11 12:08:45 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "QtWebEngine based cross-platform web browser";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://community.kde.org/Incubator/Projects/Falkon";
|
2017-09-11 12:08:45 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|