plasma5Packages.ktexteditor: add darwin support
This commit is contained in:
parent
8902dfbe46
commit
8f7d2c1829
1 changed files with 8 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
mkDerivation,
|
mkDerivation, lib, stdenv,
|
||||||
extra-cmake-modules, perl,
|
extra-cmake-modules, perl,
|
||||||
karchive, kconfig, kguiaddons, ki18n, kiconthemes, kio, kparts, libgit2,
|
karchive, kconfig, kguiaddons, ki18n, kiconthemes, kio, kparts, libgit2,
|
||||||
qtscript, qtxmlpatterns, sonnet, syntax-highlighting, qtquickcontrols,
|
qtscript, qtxmlpatterns, sonnet, syntax-highlighting, qtquickcontrols,
|
||||||
editorconfig-core-c
|
editorconfig-core-c
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation {
|
mkDerivation ({
|
||||||
pname = "ktexteditor";
|
pname = "ktexteditor";
|
||||||
nativeBuildInputs = [ extra-cmake-modules perl ];
|
nativeBuildInputs = [ extra-cmake-modules perl ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -15,4 +15,9 @@ mkDerivation {
|
||||||
editorconfig-core-c
|
editorconfig-core-c
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = [ kparts ];
|
propagatedBuildInputs = [ kparts ];
|
||||||
}
|
} // lib.optionalAttrs stdenv.isDarwin {
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/part/CMakeLists.txt \
|
||||||
|
--replace "kpart.desktop" "${kparts}/share/kservicetypes5/kpart.desktop"
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue