2023-02-02 18:25:31 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, fetchpatch
|
2023-02-02 18:25:31 +00:00
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, qttools
|
2023-04-29 16:46:19 +00:00
|
|
|
, doxygen
|
2023-02-02 18:25:31 +00:00
|
|
|
, wrapQtAppsHook
|
2023-04-29 16:46:19 +00:00
|
|
|
, qtbase
|
2023-02-02 18:25:31 +00:00
|
|
|
, dtkcore
|
|
|
|
, qtimageformats
|
2023-04-29 16:46:19 +00:00
|
|
|
, lxqt
|
|
|
|
, librsvg
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dtkgui";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "5.6.17";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-ssCVMFCE1vhucYMxXkEZV5YlFxT1JdYGqrzILhWX1XI=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
patches = [
|
|
|
|
./fix-pkgconfig-path.patch
|
|
|
|
./fix-pri-path.patch
|
|
|
|
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix_svg_with_filter_attribute_rendering_exception.patch";
|
|
|
|
url = "https://github.com/linuxdeepin/dtkgui/commit/f2c9327eb4989ab8ea96af7560c67d1cada794de.patch";
|
|
|
|
hash = "sha256-lfg09tgS4vPuYachRbHdaMYKWdZZ0lP0Hxakkr9JKGs=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
qttools
|
2023-04-29 16:46:19 +00:00
|
|
|
doxygen
|
2023-02-02 18:25:31 +00:00
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
qtbase
|
2023-02-02 18:25:31 +00:00
|
|
|
lxqt.libqtxdg
|
2023-03-08 16:32:21 +00:00
|
|
|
librsvg
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dtkcore
|
|
|
|
qtimageformats
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2024-01-02 11:29:13 +00:00
|
|
|
"-DDTK_VERSION=${version}"
|
2023-04-29 16:46:19 +00:00
|
|
|
"-DBUILD_DOCS=ON"
|
2023-02-02 18:25:31 +00:00
|
|
|
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
|
2024-01-02 11:29:13 +00:00
|
|
|
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/${qtbase.qtDocPrefix}"
|
|
|
|
"-DCMAKE_INSTALL_LIBEXECDIR=${placeholder "dev"}/libexec"
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
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}
|
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Deepin Toolkit, gui module for DDE look and feel";
|
|
|
|
homepage = "https://github.com/linuxdeepin/dtkgui";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.deepin.members;
|
|
|
|
};
|
|
|
|
}
|