diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-04-21 11:25:30 +0300 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-04 23:41:55 +0300 |
commit | 8f7d2c182909a46058deaf56903aeee032684222 (patch) | |
tree | 680fddd8e0e0e34b0eaae9447debbacd301d9712 /pkgs/development/libraries/kde-frameworks | |
parent | 8902dfbe468700847ce8bcd7b6c0e3ee79843e20 (diff) |
plasma5Packages.ktexteditor: add darwin support
Diffstat (limited to 'pkgs/development/libraries/kde-frameworks')
-rw-r--r-- | pkgs/development/libraries/kde-frameworks/ktexteditor.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/libraries/kde-frameworks/ktexteditor.nix b/pkgs/development/libraries/kde-frameworks/ktexteditor.nix index 5788c07cb05c..ccc9f76b237a 100644 --- a/pkgs/development/libraries/kde-frameworks/ktexteditor.nix +++ b/pkgs/development/libraries/kde-frameworks/ktexteditor.nix @@ -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" + ''; +}) |