2024-05-15 15:35:15 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, doxygen
|
|
|
|
, qt6Packages
|
|
|
|
, dtk6core
|
|
|
|
, librsvg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "dtk6gui";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "6.0.16";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = "dtk6gui";
|
|
|
|
rev = finalAttrs.version;
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-fnbCKqeeQE5WBnNJ0D1ihsZswDSJ/Oj98eUXFrOuk+w=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qt6Packages.qtbase
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dtk6core
|
|
|
|
qt6Packages.qtimageformats
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDTK_VERSION=${finalAttrs.version}"
|
|
|
|
"-DBUILD_DOCS=ON"
|
|
|
|
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
|
|
|
|
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
|
|
|
|
];
|
|
|
|
|
|
|
|
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}
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for binary in $out/libexec/dtk6/DGui/bin/*; do
|
|
|
|
wrapQtApp $binary
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Deepin Toolkit, gui module for DDE look and feel";
|
|
|
|
homepage = "https://github.com/linuxdeepin/dtk6gui";
|
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = lib.teams.deepin.members;
|
|
|
|
};
|
|
|
|
})
|