1{
2 mkDerivation,
3 lib,
4 fetchpatch,
5 bash,
6 cmake,
7 pkg-config,
8}:
9
10mkDerivation {
11 pname = "extra-cmake-modules";
12
13 patches = [
14 # https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/268
15 (fetchpatch {
16 url = "https://invent.kde.org/frameworks/extra-cmake-modules/-/commit/5862a6f5b5cd7ed5a7ce2af01e44747c36318220.patch";
17 sha256 = "10y36fc3hnpmcsmjgfxn1rp4chj5yrhgghj7m8gbmcai1q5jr0xj";
18 })
19 ];
20
21 outputs = [ "out" ]; # this package has no runtime components
22
23 nativeBuildInputs = [
24 cmake
25 ];
26
27 buildInputs = [
28 bash
29 ];
30
31 # note: these will be propagated into the same list extra-cmake-modules is in
32 propagatedBuildInputs = [
33 cmake
34 pkg-config
35 ];
36
37 strictDeps = true;
38
39 setupHook = ./setup-hook.sh;
40
41 meta = with lib; {
42 platforms = platforms.linux ++ platforms.darwin;
43 homepage = "https://invent.kde.org/frameworks/extra-cmake-modules";
44 license = licenses.bsd2;
45 };
46}