deepin.dtkcore: 5.6.22 -> 5.6.29

This commit is contained in:
rewine 2024-05-31 10:42:52 +08:00
parent 505fbdb97e
commit 8bfa4dd2cc

View File

@ -18,13 +18,13 @@
stdenv.mkDerivation rec {
pname = "dtkcore";
version = "5.6.22";
version = "5.6.29";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-W8uLNWC8bYzrKrX/hq9p1h66dWrxp4Vt+/27zDJeAS4=";
hash = "sha256-toqbEobi2R5tGnCYaShLyFdp4toEybMrWU+IORI/vu4=";
};
patches = [
@ -32,6 +32,11 @@ stdenv.mkDerivation rec {
./fix-pri-path.patch
];
postPatch = ''
substituteInPlace misc/DtkCoreConfig.cmake.in \
--subst-var-by PACKAGE_TOOL_INSTALL_DIR ${placeholder "out"}/libexec/dtk5/DCore/bin
'';
nativeBuildInputs = [
cmake
pkg-config
@ -60,7 +65,7 @@ stdenv.mkDerivation rec {
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/${qtbase.qtDocPrefix}"
"-DDSG_PREFIX_PATH='/run/current-system/sw'"
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
"-DCMAKE_INSTALL_LIBEXECDIR=${placeholder "dev"}/libexec"
"-DTOOL_INSTALL_DIR=${placeholder "out"}/libexec/dtk5/DCore/bin"
"-DD_DSG_APP_DATA_FALLBACK=/var/dsg/appdata"
"-DBUILD_WITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
];
@ -73,6 +78,12 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "doc" ];
postFixup = ''
for binary in $out/libexec/dtk5/DCore/bin/*; do
wrapQtApp $binary
done
'';
meta = with lib; {
description = "Deepin tool kit core library";
homepage = "https://github.com/linuxdeepin/dtkcore";