2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, pkg-config
|
|
|
|
, qttools
|
|
|
|
, qtwebengine
|
|
|
|
, hunspell
|
|
|
|
, cmark
|
|
|
|
, multimarkdown
|
|
|
|
, pandoc
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "ghostwriter";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "2.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-09-30 11:47:45 +00:00
|
|
|
owner = "KDE";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
2021-01-09 10:05:03 +00:00
|
|
|
rev = version;
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-8JtCO5jrkbZ4uEM7SALg64L4HSzdzzh7r1pldxzaXeI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ qmake pkg-config qttools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ qtwebengine hunspell ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ cmark multimarkdown pandoc ])
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A cross-platform, aesthetic, distraction-free Markdown editor";
|
2022-09-30 11:47:45 +00:00
|
|
|
homepage = "https://kde.github.io/ghostwriter";
|
|
|
|
changelog = "https://github.com/KDE/ghostwriter/blob/${src.rev}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2021-01-09 10:05:03 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda erictapen ];
|
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|