16 stdenv.mkDerivation (finalAttrs: {
20 src = fetchFromGitHub {
21 owner = "linuxdeepin";
23 rev = finalAttrs.version;
24 hash = "sha256-3MwvTnjtVVcMjQa1f4UdagEtWhJj8aDgfUlmnGo/R7s=";
28 ./fix-pkgconfig-path.patch
31 name = "fix-build-on-qt-6.8.patch";
32 url = "https://gitlab.archlinux.org/archlinux/packaging/packages/dtk6core/-/raw/d2e991f96b2940e8533b7e944bab5a7dd6aa0fb7/qt-6.8.patch";
33 hash = "sha256-HZxUrtUmVwnNUwcBoU7ewb+McsRkALQglPBbJU8HTkk=";
38 substituteInPlace misc/DtkCoreConfig.cmake.in \
39 --subst-var-by PACKAGE_TOOL_INSTALL_DIR ${placeholder "out"}/libexec/dtk6/DCore/bin
47 qt6Packages.wrapQtAppsHook
50 dontWrapQtApps = true;
58 propagatedBuildInputs = [
64 "-DDTK_VERSION=${finalAttrs.version}"
66 "-DBUILD_EXAMPLES=OFF"
67 "-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
68 "-DDSG_PREFIX_PATH='/run/current-system/sw'"
69 "-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
70 "-DD_DSG_APP_DATA_FALLBACK=/var/dsg/appdata"
74 # qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
75 # A workaround is to set QT_PLUGIN_PATH explicitly
76 export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
86 for binary in $out/libexec/dtk6/DCore/bin/*; do
92 description = "Deepin tool kit core library";
93 homepage = "https://github.com/linuxdeepin/dtk6core";
94 license = lib.licenses.lgpl3Plus;
95 platforms = lib.platforms.linux;
96 maintainers = lib.teams.deepin.members;