deepin.dtkwidget: 5.6.29 -> 5.6.31

This commit is contained in:
rewine 2024-07-26 21:47:46 +08:00
parent 843bb50fd4
commit 335921e79a

View File

@ -3,14 +3,9 @@
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, pkg-config , pkg-config
, qttools
, doxygen , doxygen
, wrapQtAppsHook , libsForQt5
, dtkgui , dtkgui
, qtbase
, qtmultimedia
, qtsvg
, qtx11extras
, cups , cups
, gsettings-qt , gsettings-qt
, libstartup_notification , libstartup_notification
@ -19,13 +14,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dtkwidget"; pname = "dtkwidget";
version = "5.6.29"; version = "5.6.31";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxdeepin"; owner = "linuxdeepin";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-eFEigOJGw5gTi0G13/rtnqoaeTdnO0aSLfZlRwHg3yE="; hash = "sha256-FAF66FsmUX0dhFlbT5wAUWkxY0TOU6dcKNwlY10Qou0=";
}; };
patches = [ patches = [
@ -41,17 +36,17 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
qttools
doxygen doxygen
pkg-config pkg-config
wrapQtAppsHook libsForQt5.qttools
libsForQt5.wrapQtAppsHook
]; ];
buildInputs = [ buildInputs = [
qtbase libsForQt5.qtbase
qtmultimedia libsForQt5.qtmultimedia
qtsvg libsForQt5.qtsvg
qtx11extras libsForQt5.qtx11extras
cups cups
gsettings-qt gsettings-qt
libstartup_notification libstartup_notification
@ -64,13 +59,13 @@ stdenv.mkDerivation rec {
"-DDTK_VERSION=${version}" "-DDTK_VERSION=${version}"
"-DBUILD_DOCS=ON" "-DBUILD_DOCS=ON"
"-DMKSPECS_INSTALL_DIR=${placeholder "dev"}/mkspecs/modules" "-DMKSPECS_INSTALL_DIR=${placeholder "dev"}/mkspecs/modules"
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/${qtbase.qtDocPrefix}" "-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/${libsForQt5.qtbase.qtDocPrefix}"
]; ];
preConfigure = '' preConfigure = ''
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal" # qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
# A workaround is to set QT_PLUGIN_PATH explicitly # A workaround is to set QT_PLUGIN_PATH explicitly
export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix} export QT_PLUGIN_PATH=${libsForQt5.qtbase.bin}/${libsForQt5.qtbase.qtPluginPrefix}
''; '';
outputs = [ "out" "dev" "doc" ]; outputs = [ "out" "dev" "doc" ];