2024-01-02 11:29:13 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, qttools
|
|
|
|
, doxygen
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, qtbase
|
|
|
|
, dtkgui
|
|
|
|
, qtdeclarative
|
|
|
|
, qtquickcontrols2
|
|
|
|
, qtgraphicaleffects
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dtkdeclarative";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.6.24";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-bGy8e+JAyHiAwWvO5Xz1TubHUDP4i4nWUR4h5/appM0=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-pkgconfig-path.patch
|
|
|
|
./fix-pri-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
doxygen
|
|
|
|
qttools
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dtkgui
|
|
|
|
qtdeclarative
|
|
|
|
qtquickcontrols2
|
|
|
|
qtgraphicaleffects
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDTK_VERSION=${version}"
|
|
|
|
"-DBUILD_DOCS=ON"
|
|
|
|
"-DBUILD_EXAMPLES=ON"
|
|
|
|
"-DMKSPECS_INSTALL_DIR=${placeholder "dev"}/mkspecs/modules"
|
|
|
|
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/${qtbase.qtDocPrefix}"
|
|
|
|
"-DQML_INSTALL_DIR=${placeholder "out"}/${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=${qtbase.bin}/${qtbase.qtPluginPrefix}
|
|
|
|
export QML2_IMPORT_PATH=${qtdeclarative.bin}/${qtbase.qtQmlPrefix}
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|