about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/ghostwriter/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/ghostwriter/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/editors/ghostwriter/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/ghostwriter/default.nix b/nixpkgs/pkgs/applications/editors/ghostwriter/default.nix
new file mode 100644
index 000000000000..2249009af777
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/ghostwriter/default.nix
@@ -0,0 +1,26 @@
+{ lib, stdenv, mkDerivation, fetchFromGitHub, qmake, pkg-config, qttools, qtwebengine, hunspell }:
+
+mkDerivation rec {
+  pname = "ghostwriter";
+  version = "2.0.0-rc5";
+
+  src = fetchFromGitHub {
+    owner = "wereturtle";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-Gc0/AHxxJd5Cq3dBQ0Xy2TF78CBmQFYUzm4s7q1aHEE=";
+  };
+
+  nativeBuildInputs = [ qmake pkg-config qttools ];
+
+  buildInputs = [ qtwebengine hunspell ];
+
+  meta = with lib; {
+    description = "A cross-platform, aesthetic, distraction-free Markdown editor";
+    homepage = src.meta.homepage;
+    license = licenses.gpl3Plus;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ dotlambda erictapen ];
+    broken = stdenv.isDarwin;
+  };
+}