about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/kde/ghostwriter.nix
blob: d9399986959e7c22bd7400200bb1f4496c48b434 (plain) (blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib
, mkDerivation
, extra-cmake-modules
, qttools
, qtwebengine
, kcoreaddons
, kconfigwidgets
, sonnet
, kxmlgui
, hunspell
, cmark
, multimarkdown
, pandoc
}:

mkDerivation {
  pname = "ghostwriter";

  nativeBuildInputs = [ extra-cmake-modules qttools ];

  buildInputs = [
    qtwebengine
    hunspell
    kcoreaddons
    kconfigwidgets
    sonnet
    kxmlgui
  ];

  qtWrapperArgs = [
    "--prefix" "PATH" ":" (lib.makeBinPath [ cmark multimarkdown pandoc ])
  ];

  meta = with lib; {
    description = "A cross-platform, aesthetic, distraction-free Markdown editor";
    mainProgram = "ghostwriter";
    homepage = "https://ghostwriter.kde.org/";
    changelog = "https://invent.kde.org/office/ghostwriter/-/blob/master/CHANGELOG.md";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ dotlambda erictapen ];
  };
}