2020-05-03 20:52:19 +01:00
|
|
|
{ stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, cmake
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtwebchannel
|
|
|
|
, qtx11extras
|
|
|
|
, gnome2
|
|
|
|
, nss
|
|
|
|
, nspr
|
|
|
|
, alsaLib
|
|
|
|
, atk
|
|
|
|
, cairo
|
|
|
|
, cups
|
|
|
|
, dbus
|
|
|
|
, expat
|
|
|
|
, fontconfig
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gtk2
|
|
|
|
, libxcb
|
|
|
|
, pango
|
|
|
|
, pulseaudio
|
|
|
|
, xorg
|
|
|
|
, deepin
|
|
|
|
}:
|
2019-04-06 00:23:10 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
rpahtLibraries = [
|
2020-05-03 20:52:19 +01:00
|
|
|
stdenv.cc.cc.lib # libstdc++.so.6
|
2019-04-06 00:23:10 +01:00
|
|
|
alsaLib
|
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
cups
|
|
|
|
dbus
|
|
|
|
expat
|
|
|
|
fontconfig
|
2019-05-22 12:03:39 +01:00
|
|
|
gdk-pixbuf
|
2019-04-06 00:23:10 +01:00
|
|
|
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
|
|
|
|
];
|
2020-05-03 20:52:19 +01:00
|
|
|
|
2019-04-06 00:23:10 +01:00
|
|
|
libPath = stdenv.lib.makeLibraryPath rpahtLibraries;
|
|
|
|
|
2020-05-03 20:52:19 +01:00
|
|
|
in
|
2019-07-22 03:53:18 +01:00
|
|
|
mkDerivation rec {
|
2019-04-06 00:23:10 +01:00
|
|
|
pname = "qcef";
|
2020-05-26 19:24:38 +01:00
|
|
|
version = "1.1.8";
|
2019-04-06 00:23:10 +01:00
|
|
|
|
|
|
|
srcs = [
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-05-26 19:24:38 +01:00
|
|
|
sha256 = "14a33af1h3wj3yph080c1ri3m27bqj1v1k0jdqc63x7c3smnpwfk";
|
2019-04-06 00:23:10 +01:00
|
|
|
name = pname;
|
|
|
|
})
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = "cef-binary";
|
2019-11-12 02:24:18 +00:00
|
|
|
rev = "fecf00339545d2819224333cc506d5aa22ae8008";
|
|
|
|
sha256 = "06i1zc7ciy7d0qhndiwpjrsii0x5i5hg9j6ddi4w5yf1nzgsrj4n";
|
2019-04-06 00:23:10 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2020-05-03 21:03:55 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version; src = (builtins.head srcs); };
|
2019-04-06 00:23:10 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt5 binding of Chromium Embedded Framework";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/linuxdeepin/qcef";
|
2019-04-06 00:23:10 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2020-05-03 20:52:19 +01:00
|
|
|
badPlatforms = [ "aarch64-linux" ]; # the cef-binary is not available
|
2019-04-06 00:23:10 +01:00
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|