Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 mkDerivation,
3 lib,
4 stdenv,
5 extra-cmake-modules,
6 perl,
7 karchive,
8 kconfig,
9 kguiaddons,
10 ki18n,
11 kiconthemes,
12 kio,
13 kparts,
14 libgit2,
15 qtscript,
16 qtxmlpatterns,
17 sonnet,
18 syntax-highlighting,
19 qtquickcontrols,
20 editorconfig-core-c,
21}:
22
23mkDerivation (
24 {
25 pname = "ktexteditor";
26 nativeBuildInputs = [
27 extra-cmake-modules
28 perl
29 ];
30 buildInputs = [
31 karchive
32 kconfig
33 kguiaddons
34 ki18n
35 kiconthemes
36 kio
37 libgit2
38 qtscript
39 qtxmlpatterns
40 sonnet
41 syntax-highlighting
42 qtquickcontrols
43 editorconfig-core-c
44 ];
45 propagatedBuildInputs = [ kparts ];
46 }
47 // lib.optionalAttrs stdenv.hostPlatform.isDarwin {
48 postPatch = ''
49 substituteInPlace src/part/CMakeLists.txt \
50 --replace "kpart.desktop" "${kparts}/share/kservicetypes5/kpart.desktop"
51 '';
52 }
53)