plasma5Packages.ktexteditor: add darwin support

This commit is contained in:
Weijia Wang 2023-04-21 11:25:30 +03:00
parent 8902dfbe46
commit 8f7d2c1829

View file

@ -1,12 +1,12 @@
{
mkDerivation,
mkDerivation, lib, stdenv,
extra-cmake-modules, perl,
karchive, kconfig, kguiaddons, ki18n, kiconthemes, kio, kparts, libgit2,
qtscript, qtxmlpatterns, sonnet, syntax-highlighting, qtquickcontrols,
editorconfig-core-c
}:
mkDerivation {
mkDerivation ({
pname = "ktexteditor";
nativeBuildInputs = [ extra-cmake-modules perl ];
buildInputs = [
@ -15,4 +15,9 @@ mkDerivation {
editorconfig-core-c
];
propagatedBuildInputs = [ kparts ];
}
} // lib.optionalAttrs stdenv.isDarwin {
postPatch = ''
substituteInPlace src/part/CMakeLists.txt \
--replace "kpart.desktop" "${kparts}/share/kservicetypes5/kpart.desktop"
'';
})