nixpkgs/pkgs/applications/kde/ghostwriter.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

43 lines
847 B
Nix

{ 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 ];
};
}