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,
|
||||
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"
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue