From 8f7d2c182909a46058deaf56903aeee032684222 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 21 Apr 2023 11:25:30 +0300 Subject: [PATCH] plasma5Packages.ktexteditor: add darwin support --- .../libraries/kde-frameworks/ktexteditor.nix | 11 ++++++++--- 1 file 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" + ''; +})