deepin: don't need prefix qt5integration for all application
Seems only in dde-dock/dde-launcher/dde-control-center/dde-session-ui/dde-session-shell qt5integration must be placed before qtsvg in QT_PLUGIN_PATH, otherwise part of the svg cannot be rendered correctly
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
, dtkwidget
|
||||
, qt5integration
|
||||
, qt5platform-plugins
|
||||
, qtbase
|
||||
, qtsvg
|
||||
, udisks2-qt5
|
||||
, gio-qt
|
||||
, image-editor
|
||||
@@ -16,7 +18,6 @@
|
||||
, opencv
|
||||
, ffmpeg
|
||||
, ffmpegthumbnailer
|
||||
, qtbase
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -35,9 +36,7 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace libUnionImage/CMakeLists.txt \
|
||||
--replace "/usr" "$out"
|
||||
substituteInPlace src/CMakeLists.txt \
|
||||
--replace "set(PREFIX /usr)" "set(PREFIX $out)" \
|
||||
--replace "/usr/bin" "$out/bin" \
|
||||
--replace "/usr/share/deepin-manual/manual-assets/application/)" "share/deepin-manual/manual-assets/application/)"
|
||||
--replace "/usr" "$out"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -49,7 +48,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
qtbase
|
||||
qtsvg
|
||||
udisks2-qt5
|
||||
gio-qt
|
||||
image-editor
|
||||
@@ -60,10 +62,7 @@ stdenv.mkDerivation rec {
|
||||
ffmpegthumbnailer
|
||||
];
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
strictDeps = true;
|
||||
|
||||
cmakeFlags = [ "-DVERSION=${version}" ];
|
||||
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
, dtkwidget
|
||||
, qt5integration
|
||||
, qt5platform-plugins
|
||||
, qtbase
|
||||
, qtsvg
|
||||
, dde-qt-dbus-factory
|
||||
, cmake
|
||||
, qtbase
|
||||
, qttools
|
||||
, pkg-config
|
||||
, wrapQtAppsHook
|
||||
@@ -33,14 +34,15 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
qtbase
|
||||
qtsvg
|
||||
dde-qt-dbus-factory
|
||||
gtest
|
||||
];
|
||||
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
"--prefix QT_QPA_PLATFORM_PLUGIN_PATH : ${qt5platform-plugins}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
strictDeps = true;
|
||||
|
||||
cmakeFlags = [ "-DVERSION=${version}" ];
|
||||
|
||||
|
||||
@@ -36,11 +36,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/CMakeLists.txt \
|
||||
--replace "/usr/share/libimagevisualresult/filter_cube" "${image-editor}/share/libimagevisualresult/filter_cube" \
|
||||
--replace "/usr/share/libimagevisualresult" "${image-editor}/share/libimagevisualresult" \
|
||||
--replace "/usr/include/libusb-1.0" "${lib.getDev libusb1}/include/libusb-1.0"
|
||||
substituteInPlace src/com.deepin.Camera.service \
|
||||
--replace "/usr/bin/qdbus" "${lib.getBin qttools}/bin/qdbus" \
|
||||
--replace "/usr/share/applications/deepin-camera.desktop" "$out/share/applications/deepin-camera.desktop"
|
||||
--replace "/usr/share" "$out/share"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -52,6 +52,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
image-editor
|
||||
qtbase
|
||||
@@ -70,14 +71,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
cmakeFlags = [ "-DVERSION=${version}" ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
"-I${gst_all_1.gstreamer.dev}/include/gstreamer-1.0"
|
||||
"-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"
|
||||
];
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ ffmpeg ffmpegthumbnailer gst_all_1.gstreamer gst_all_1.gst-plugins-base libusb1 libv4l portaudio systemd ]}"
|
||||
];
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
qtbase
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
libuuid
|
||||
parted
|
||||
@@ -61,11 +62,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Disk and partition backup/restore tool";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-clone";
|
||||
|
||||
@@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
udisks2-qt5
|
||||
kcodecs
|
||||
@@ -60,11 +61,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A fast and lightweight application for creating and extracting archives";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-compressor";
|
||||
|
||||
@@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qt5integration
|
||||
qtsvg
|
||||
dtkwidget
|
||||
qt5platform-plugins
|
||||
@@ -55,11 +56,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Lightweight drawing tool for users to freely draw and simply edit images";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-draw";
|
||||
|
||||
@@ -54,6 +54,7 @@ stdenv.mkDerivation rec {
|
||||
qtbase
|
||||
qtsvg
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
dde-qt-dbus-factory
|
||||
kcodecs
|
||||
@@ -68,11 +69,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
cmakeFlags = [ "-DVERSION=${version}" ];
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A desktop text editor that supports common text editing features";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-editor";
|
||||
|
||||
@@ -59,6 +59,7 @@ stdenv.mkDerivation rec {
|
||||
qtbase
|
||||
qtsvg
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
gio-qt
|
||||
udisks2-qt5
|
||||
@@ -71,11 +72,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
cmakeFlags = [ "-DVERSION=${version}" ];
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An image viewing tool with fashion interface and smooth performance";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-image-viewer";
|
||||
|
||||
@@ -73,6 +73,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
qtx11extras
|
||||
qtmultimedia
|
||||
@@ -99,12 +100,6 @@ stdenv.mkDerivation rec {
|
||||
gst-plugins-base
|
||||
]);
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ mpv ffmpeg ffmpegthumbnailer gst_all_1.gstreamer gst_all_1.gst-plugins-base ]}"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
"-I${gst_all_1.gstreamer.dev}/include/gstreamer-1.0"
|
||||
"-I${gst_all_1.gst-plugins-base.dev}/include/gstreamer-1.0"
|
||||
@@ -114,6 +109,12 @@ stdenv.mkDerivation rec {
|
||||
"-DVERSION=${version}"
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
qtWrapperArgs = [
|
||||
"--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ mpv ffmpeg ffmpegthumbnailer gst_all_1.gstreamer gst_all_1.gst-plugins-base ]}"
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
glib-compile-schemas ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
||||
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||
|
||||
@@ -38,8 +38,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/music-player/CMakeLists.txt \
|
||||
--replace "include_directories(/usr/include/vlc)" "include_directories(${libvlc}/include/vlc)" \
|
||||
--replace "include_directories(/usr/include/vlc/plugins)" "include_directories(${libvlc}/include/vlc/plugins)" \
|
||||
--replace "/usr/include/vlc" "${libvlc}/include/vlc" \
|
||||
--replace "/usr/share" "$out/share"
|
||||
substituteInPlace src/libmusic-plugin/CMakeLists.txt \
|
||||
--replace "/usr/lib/deepin-aiassistant" "$out/lib/deepin-aiassistant"
|
||||
@@ -56,6 +55,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
dde-qt-dbus-factory
|
||||
udisks2-qt5
|
||||
@@ -76,15 +76,12 @@ stdenv.mkDerivation rec {
|
||||
gst-plugins-good
|
||||
]);
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DVERSION=${version}"
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
preFixup = ''
|
||||
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||
'';
|
||||
|
||||
@@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
dde-qt-dbus-factory
|
||||
qtwebengine
|
||||
@@ -61,11 +62,6 @@ stdenv.mkDerivation rec {
|
||||
"DEFINES+=VERSION=${version}"
|
||||
];
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple memo software with texts and voice recordings";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-reader";
|
||||
|
||||
@@ -32,6 +32,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
qtbase
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
];
|
||||
|
||||
@@ -40,11 +41,6 @@ stdenv.mkDerivation rec {
|
||||
"PREFIX=${placeholder "out"}"
|
||||
];
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Deepin Shortcut Viewer";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-shortcut-viewer";
|
||||
|
||||
@@ -53,6 +53,7 @@ stdenv.mkDerivation rec {
|
||||
qtbase
|
||||
qtsvg
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
dde-qt-dbus-factory
|
||||
qtx11extras
|
||||
@@ -64,11 +65,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Terminal emulator with workspace, multiple windows, remote management, quake mode and other features";
|
||||
homepage = "https://github.com/linuxdeepin/deepin-terminal";
|
||||
|
||||
@@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
qtbase
|
||||
dtkwidget
|
||||
qt5integration
|
||||
qt5platform-plugins
|
||||
dde-qt-dbus-factory
|
||||
qtmultimedia
|
||||
@@ -62,11 +63,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-I${dde-qt-dbus-factory}/include/libdframeworkdbus-2.0";
|
||||
|
||||
# qt5integration must be placed before qtsvg in QT_PLUGIN_PATH
|
||||
qtWrapperArgs = [
|
||||
"--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}"
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user