deepin-compressor: fix build for new dtk

This commit is contained in:
rewine 2023-10-24 13:47:44 +08:00
parent c7312655f1
commit 004c46908d
No known key found for this signature in database
GPG Key ID: 2964FF5514455F51

View File

@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, dtkwidget
, qt5integration
, qt5platform-plugins
@ -29,6 +30,14 @@ stdenv.mkDerivation rec {
hash = "sha256-oOxto0X/GBAA9q691uwC0PtCdHDTMBqi80ov4xCXPn0=";
};
patches = [
(fetchpatch {
name = "fix-build-failures-for-new-dtkgui.patch";
url = "https://github.com/linuxdeepin/deepin-compressor/commit/0ee07030034b06021e366d8d6109f344d47ea26c.patch";
hash = "sha256-P++SxzZCWoXJnLQhC0H/64/LjW/dqnl3hCGBWHVDn9Q=";
})
];
postPatch = ''
substituteInPlace src/source/common/pluginmanager.cpp \
--replace "/usr/lib/" "$out/lib/"