summaryrefslogtreecommitdiff
path: root/pkgs/kde/frameworks/extra-cmake-modules/default.nix
blob: e76bd3a6958af11dd3ed58693c10e7f6d723df34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  lib,
  mkKdeDerivation,
  python3,
}:
mkKdeDerivation {
  pname = "extra-cmake-modules";

  outputs = [ "out" ];

  patches = [
    ./search-qml.patch
  ];

  # Packages that have an Android APK (e.g. KWeather) require Python3 at build time.
  # See: https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/v6.1.0/modules/ECMAddAndroidApk.cmake?ref_type=tags#L57
  propagatedNativeBuildInputs = [
    python3
  ];

  setupHook = ./ecm-hook.sh;

  # Pure CMake macros, also used by non-KDE packages on all platforms.
  meta.platforms = lib.platforms.all;
}