mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
44 lines
956 B
Nix
44 lines
956 B
Nix
{ lib
|
|
, stdenv
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, qmake
|
|
, pkg-config
|
|
, qttools
|
|
, qtwebengine
|
|
, hunspell
|
|
, cmark
|
|
, multimarkdown
|
|
, pandoc
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "ghostwriter";
|
|
version = "2.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wereturtle";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-Vr1w9bAtjQK1ZevFDWQ7xNsUrdv5qrP+JHe1Cuc2CvE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake pkg-config qttools ];
|
|
|
|
buildInputs = [ qtwebengine hunspell ];
|
|
|
|
qtWrapperArgs = [
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ cmark multimarkdown pandoc ])
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A cross-platform, aesthetic, distraction-free Markdown editor";
|
|
homepage = src.meta.homepage;
|
|
changelog = "https://github.com/wereturtle/ghostwriter/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ dotlambda erictapen ];
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|