14 stdenv.mkDerivation (finalAttrs: {
18 src = fetchFromGitHub {
19 owner = "linuxdeepin";
21 rev = finalAttrs.version;
22 hash = "sha256-nqwkBMcCQiW4iqYhceTaSNNxoR5tvCNfjKUVVHkzN3A=";
26 ./fix-pkgconfig-path.patch
29 name = "fix-build-on-qt-6.8.patch";
30 url = "https://gitlab.archlinux.org/archlinux/packaging/packages/dtk6gui/-/raw/b6b8521fd69c28dbca5f6e8d1d8258c904b6caf1/qt-6.8.patch";
31 hash = "sha256-Fu5vwvKJGMW94JYoIPvDCeXs8WrAskQlVRX/3FYQFGY=";
36 substituteInPlace src/util/dsvgrenderer.cpp \
37 --replace-fail 'QLibrary("rsvg-2", "2")' 'QLibrary("${lib.getLib librsvg}/lib/librsvg-2.so")'
45 qt6Packages.wrapQtAppsHook
53 propagatedBuildInputs = [
55 qt6Packages.qtimageformats
59 "-DDTK_VERSION=${finalAttrs.version}"
61 "-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
62 "-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
66 # qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
67 # A workaround is to set QT_PLUGIN_PATH explicitly
68 export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
78 for binary in $out/libexec/dtk6/DGui/bin/*; do
84 description = "Deepin Toolkit, gui module for DDE look and feel";
85 homepage = "https://github.com/linuxdeepin/dtk6gui";
86 license = lib.licenses.lgpl3Plus;
87 platforms = lib.platforms.linux;
88 maintainers = lib.teams.deepin.members;