2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
pkg-config,
|
|
|
|
doxygen,
|
|
|
|
libsForQt5,
|
|
|
|
dtkgui,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dtkdeclarative";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "5.6.32";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-MOiNpuvYwJi9rNKx6TuUuWnlGhmZrRbL48EFapy442M=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-pkgconfig-path.patch
|
|
|
|
./fix-pri-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
doxygen
|
2024-09-19 14:19:46 +00:00
|
|
|
libsForQt5.qttools
|
|
|
|
libsForQt5.wrapQtAppsHook
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dtkgui
|
2024-09-19 14:19:46 +00:00
|
|
|
libsForQt5.qtdeclarative
|
|
|
|
libsForQt5.qtquickcontrols2
|
|
|
|
libsForQt5.qtgraphicaleffects
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDTK_VERSION=${version}"
|
|
|
|
"-DBUILD_DOCS=ON"
|
|
|
|
"-DBUILD_EXAMPLES=ON"
|
|
|
|
"-DMKSPECS_INSTALL_DIR=${placeholder "dev"}/mkspecs/modules"
|
2024-09-19 14:19:46 +00:00
|
|
|
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/${libsForQt5.qtbase.qtDocPrefix}"
|
|
|
|
"-DQML_INSTALL_DIR=${placeholder "out"}/${libsForQt5.qtbase.qtQmlPrefix}"
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
|
|
|
|
# A workaround is to set QT_PLUGIN_PATH explicitly
|
2024-09-19 14:19:46 +00:00
|
|
|
export QT_PLUGIN_PATH=${libsForQt5.qtbase.bin}/${libsForQt5.qtbase.qtPluginPrefix}
|
|
|
|
export QML2_IMPORT_PATH=${libsForQt5.qtdeclarative.bin}/${libsForQt5.qtbase.qtQmlPrefix}
|
2024-01-02 11:29:13 +00:00
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
"doc"
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Widget development toolkit based on QtQuick/QtQml";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dtk-exhibition";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/linuxdeepin/dtkdeclarative";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.deepin.members;
|
|
|
|
};
|
|
|
|
}
|