2019-04-05 23:23:10 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools,
|
2019-06-16 19:59:06 +00:00
|
|
|
qtwebchannel, qtx11extras,
|
|
|
|
gnome2, nss, nspr, alsaLib, atk, cairo, cups, dbus,
|
|
|
|
expat, fontconfig, gdk_pixbuf, glib, gtk2,
|
|
|
|
libxcb, pango, pulseaudio, xorg, deepin }:
|
2019-04-05 23:23:10 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
rpahtLibraries = [
|
|
|
|
stdenv.cc.cc.lib # libstdc++.so.6
|
|
|
|
alsaLib
|
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
cups
|
|
|
|
dbus
|
|
|
|
expat
|
|
|
|
fontconfig
|
|
|
|
gdk_pixbuf
|
|
|
|
glib
|
|
|
|
gnome2.GConf
|
|
|
|
gtk2
|
|
|
|
libxcb
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
pango
|
|
|
|
pulseaudio
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
xorg.libXcomposite
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXdamage
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXfixes
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXrender
|
|
|
|
xorg.libXtst
|
|
|
|
];
|
|
|
|
libPath = stdenv.lib.makeLibraryPath rpahtLibraries;
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "qcef";
|
2019-05-05 13:48:46 +00:00
|
|
|
version = "1.1.6";
|
2019-04-05 23:23:10 +00:00
|
|
|
|
|
|
|
srcs = [
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-05 13:48:46 +00:00
|
|
|
sha256 = "1x0vb4nkfa1lq0nh6iqpxfvsqmb6qfn305pbc92bsqpgiqd7jvb1";
|
2019-04-05 23:23:10 +00:00
|
|
|
name = pname;
|
|
|
|
})
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = "cef-binary";
|
|
|
|
rev = "059a0c9cef4e289a50dc7a2f4c91fe69db95035e";
|
|
|
|
sha256 = "1h7cq63n94y2a6fprq4g63admh49rcci7avl5z9kdimkhqb2jb84";
|
|
|
|
name = "cef-binary";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
sourceRoot = pname;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
cmake
|
|
|
|
qttools
|
|
|
|
deepin.setupHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtwebchannel
|
|
|
|
qtx11extras
|
|
|
|
] ++ rpahtLibraries;
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
rmdir ${pname}/cef
|
|
|
|
ln -s ../cef-binary ${pname}/cef
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
searchHardCodedPaths
|
|
|
|
fixPath $out /usr src/core/qcef_global_settings.{h,cpp}
|
|
|
|
sed '/COMMAND rm -rf Release Resources/a COMMAND ldd qcef/libcef.so' -i src/CMakeLists.txt
|
|
|
|
sed '/COMMAND rm -rf Release Resources/a COMMAND patchelf --set-rpath ${libPath} qcef/libcef.so' -i src/CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
searchHardCodedPaths $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt5 binding of Chromium Embedded Framework";
|
|
|
|
homepage = https://github.com/linuxdeepin/qcef;
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2019-05-05 14:02:29 +00:00
|
|
|
badPlatforms = [ "aarch64-linux" ]; # the cef-binary is not available
|
2019-04-05 23:23:10 +00:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|