2021-06-27 09:59:06 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, pkg-config
|
|
|
|
, qttools
|
|
|
|
, qtwebengine
|
|
|
|
, hunspell
|
|
|
|
, cmark
|
|
|
|
, multimarkdown
|
|
|
|
, pandoc
|
|
|
|
}:
|
2018-02-10 18:14:56 +00:00
|
|
|
|
2019-08-01 02:42:32 +01:00
|
|
|
mkDerivation rec {
|
2018-02-10 18:14:56 +00:00
|
|
|
pname = "ghostwriter";
|
2022-03-18 19:51:13 +00:00
|
|
|
version = "2.1.2";
|
2018-02-10 18:14:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wereturtle";
|
|
|
|
repo = pname;
|
2021-01-05 12:22:13 +00:00
|
|
|
rev = version;
|
2022-03-18 19:51:13 +00:00
|
|
|
hash = "sha256-NpgtxYqxMWMZXZRZjujob40Nn6hirsSzcjoqRJR6Rws=";
|
2018-02-10 18:14:56 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ qmake pkg-config qttools ];
|
2018-02-10 18:14:56 +00:00
|
|
|
|
2019-04-29 16:44:05 +01:00
|
|
|
buildInputs = [ qtwebengine hunspell ];
|
2018-02-10 18:14:56 +00:00
|
|
|
|
2021-06-27 09:59:06 +01:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ cmark multimarkdown pandoc ])
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-10 18:14:56 +00:00
|
|
|
description = "A cross-platform, aesthetic, distraction-free Markdown editor";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2021-01-05 12:22:13 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda erictapen ];
|
|
|
|
broken = stdenv.isDarwin;
|
2018-02-10 18:14:56 +00:00
|
|
|
};
|
|
|
|
}
|