2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
pkg-config,
|
|
|
|
doxygen,
|
|
|
|
qt6Packages,
|
|
|
|
dtk6gui,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "dtk6declarative";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "6.0.19";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = "dtk6declarative";
|
|
|
|
rev = finalAttrs.version;
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-BxWPLJeuQDbNg4UoyHD/VAMV2QFWDjWZiFx5JOEmLxg=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-pkgconfig-path.patch
|
|
|
|
./fix-pri-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
doxygen
|
|
|
|
qt6Packages.qttools
|
|
|
|
qt6Packages.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[ dtk6gui ]
|
|
|
|
++ (with qt6Packages; [
|
|
|
|
qtbase
|
|
|
|
qtdeclarative
|
|
|
|
qtshadertools
|
|
|
|
qt5compat
|
|
|
|
]);
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDTK_VERSION=${finalAttrs.version}"
|
|
|
|
"-DBUILD_DOCS=ON"
|
|
|
|
"-DBUILD_EXAMPLES=ON"
|
|
|
|
"-DMKSPECS_INSTALL_DIR=${placeholder "dev"}/mkspecs/modules"
|
|
|
|
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
|
|
|
|
"-DQML_INSTALL_DIR=${placeholder "out"}/${qt6Packages.qtbase.qtQmlPrefix}"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
|
|
|
|
# A workaround is to set QT_PLUGIN_PATH explicitly
|
|
|
|
export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
|
|
|
|
export QML2_IMPORT_PATH=${lib.getBin qt6Packages.qtdeclarative}/${qt6Packages.qtbase.qtQmlPrefix}
|
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
"doc"
|
|
|
|
];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Widget development toolkit based on QtQuick/QtQml";
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "dtk-exhibition";
|
|
|
|
homepage = "https://github.com/linuxdeepin/dtk6declarative";
|
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = lib.teams.deepin.members;
|
|
|
|
};
|
|
|
|
})
|