mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
Merge pull request #59092 from romildo/upd.deepin.qcef
deepin.qcef: init at 1.1.4.6
This commit is contained in:
commit
ac7d039f09
|
@ -44,6 +44,7 @@ let
|
|||
go-dbus-generator = callPackage ./go-dbus-generator { };
|
||||
go-gir-generator = callPackage ./go-gir-generator { };
|
||||
go-lib = callPackage ./go-lib { };
|
||||
qcef = callPackage ./qcef { };
|
||||
qt5dxcb-plugin = callPackage ./qt5dxcb-plugin { };
|
||||
qt5integration = callPackage ./qt5integration { };
|
||||
|
||||
|
|
104
pkgs/desktops/deepin/qcef/default.nix
Normal file
104
pkgs/desktops/deepin/qcef/default.nix
Normal file
|
@ -0,0 +1,104 @@
|
|||
{ stdenv, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools,
|
||||
qtwebchannel, qtx11extras, dtkcore, dtkwidget, qt5integration,
|
||||
libXScrnSaver, gnome2, nss, nspr, alsaLib, atk, cairo, cups, dbus,
|
||||
expat, fontconfig, gdk_pixbuf, glib, gtk2, libX11, libXcomposite,
|
||||
libXcursor, libXdamage, libXext, libXfixes, libXi, libXrandr,
|
||||
libXrender, libXtst, libxcb, pango, pulseaudio, xorg, deepin }:
|
||||
|
||||
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";
|
||||
version = "1.1.4.6";
|
||||
|
||||
srcs = [
|
||||
(fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "06909sd0gf7n4hw6p4j96apjym219zabflgpwjafm7v00bgnwxxs";
|
||||
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;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue