1{
2 lib,
3 mkDerivation,
4 extra-cmake-modules,
5 qttools,
6 qtwebengine,
7 kcoreaddons,
8 kconfigwidgets,
9 sonnet,
10 kxmlgui,
11 hunspell,
12 cmark,
13 multimarkdown,
14 pandoc,
15}:
16
17mkDerivation {
18 pname = "ghostwriter";
19
20 nativeBuildInputs = [
21 extra-cmake-modules
22 qttools
23 ];
24
25 buildInputs = [
26 qtwebengine
27 hunspell
28 kcoreaddons
29 kconfigwidgets
30 sonnet
31 kxmlgui
32 ];
33
34 qtWrapperArgs = [
35 "--prefix"
36 "PATH"
37 ":"
38 (lib.makeBinPath [
39 cmark
40 multimarkdown
41 pandoc
42 ])
43 ];
44
45 meta = with lib; {
46 description = "Cross-platform, aesthetic, distraction-free Markdown editor";
47 mainProgram = "ghostwriter";
48 homepage = "https://ghostwriter.kde.org/";
49 changelog = "https://invent.kde.org/office/ghostwriter/-/blob/master/CHANGELOG.md";
50 license = licenses.gpl3Plus;
51 maintainers = with maintainers; [
52 dotlambda
53 erictapen
54 ];
55 };
56}