diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-04-20 18:52:50 +0300 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-04 23:41:55 +0300 |
commit | 8902dfbe468700847ce8bcd7b6c0e3ee79843e20 (patch) | |
tree | 679e9eb95805c33f7766fc24b0f7be6739f04e15 | |
parent | 845ed6342efc552afd6b58d7b4cb37868b5173fa (diff) |
plasma5Packages.qqc2-desktop-style: add darwin support
-rw-r--r-- | pkgs/development/libraries/kde-frameworks/kauth/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/libraries/kde-frameworks/kdoctools/default.nix | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/libraries/kde-frameworks/kauth/default.nix b/pkgs/development/libraries/kde-frameworks/kauth/default.nix index f5ab518ce621..0ad7cfbbb7e1 100644 --- a/pkgs/development/libraries/kde-frameworks/kauth/default.nix +++ b/pkgs/development/libraries/kde-frameworks/kauth/default.nix @@ -1,7 +1,7 @@ { - lib, mkDerivation, propagate, + lib, stdenv, mkDerivation, propagate, extra-cmake-modules, kcoreaddons, qttools, - enablePolkit ? true, polkit-qt + enablePolkit ? stdenv.isLinux, polkit-qt }: mkDerivation { diff --git a/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix b/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix index 83f3a04ee36a..4b52cd95b710 100644 --- a/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix +++ b/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix @@ -1,5 +1,5 @@ { - mkDerivation, + mkDerivation, lib, stdenv, fetchpatch, extra-cmake-modules, docbook_xml_dtd_45, docbook_xsl_ns, karchive, ki18n, qtbase, perl, perlPackages @@ -20,7 +20,15 @@ mkDerivation { ]; buildInputs = [ karchive ki18n ]; outputs = [ "out" "dev" ]; - patches = [ ./kdoctools-no-find-docbook-xml.patch ]; + patches = [ ./kdoctools-no-find-docbook-xml.patch ] + # kf.doctools.core: Error: Could not find kdoctools catalogs + ++ lib.optionals stdenv.isDarwin [ + (fetchpatch { + name = "kdoctools-relocate-datapath.patch"; + url = "https://github.com/msys2/MINGW-packages/raw/0900785a1f4e4146ab9561fb92a1c70fa70fcfc4/mingw-w64-kdoctools-qt5/0001-kdoctools-relocate-datapath.patch"; + hash = "sha256-MlokdrabXavWHGXYmdz9zZDJQIwAdNxebJBSAH2Z3vI="; + }) + ]; cmakeFlags = [ "-DDocBookXML4_DTD_DIR=${docbook_xml_dtd_45}/xml/dtd/docbook" "-DDocBookXSL_DIR=${docbook_xsl_ns}/xml/xsl/docbook" |