nixpkgs/pkgs/applications/editors/ghostwriter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
960 B
Nix
Raw Normal View History

{ lib
, stdenv
, mkDerivation
, fetchFromGitHub
, qmake
, pkg-config
, qttools
, qtwebengine
, hunspell
, cmark
, multimarkdown
, pandoc
}:
2018-02-10 18:14:56 +00:00
2019-08-01 01:42:32 +00:00
mkDerivation rec {
2018-02-10 18:14:56 +00:00
pname = "ghostwriter";
2022-09-28 19:05:47 +00:00
version = "2.2.0";
2018-02-10 18:14:56 +00:00
src = fetchFromGitHub {
2022-09-28 19:05:47 +00:00
owner = "KDE";
2018-02-10 18:14:56 +00:00
repo = pname;
rev = version;
2022-09-28 19:05:47 +00:00
hash = "sha256-8JtCO5jrkbZ4uEM7SALg64L4HSzdzzh7r1pldxzaXeI=";
2018-02-10 18:14:56 +00:00
};
nativeBuildInputs = [ qmake pkg-config qttools ];
2018-02-10 18:14:56 +00:00
2019-04-29 15:44:05 +00:00
buildInputs = [ qtwebengine hunspell ];
2018-02-10 18:14:56 +00:00
qtWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ cmark multimarkdown pandoc ])
];
meta = with lib; {
2018-02-10 18:14:56 +00:00
description = "A cross-platform, aesthetic, distraction-free Markdown editor";
2022-09-28 19:05:47 +00:00
homepage = "https://kde.github.io/ghostwriter";
changelog = "https://github.com/KDE/ghostwriter/blob/${src.rev}/CHANGELOG.md";
2018-02-10 18:14:56 +00:00
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ dotlambda erictapen ];
broken = stdenv.isDarwin;
2018-02-10 18:14:56 +00:00
};
}