about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/focuswriter
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/focuswriter')
-rw-r--r--nixpkgs/pkgs/applications/editors/focuswriter/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/focuswriter/default.nix b/nixpkgs/pkgs/applications/editors/focuswriter/default.nix
new file mode 100644
index 000000000000..2708c40d5091
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/focuswriter/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, pkgconfig, qmake, qttools, hunspell, qtbase, qtmultimedia }:
+
+stdenv.mkDerivation rec {
+  name = "focuswriter-${version}";
+  version = "1.7.0";
+
+  src = fetchurl {
+    url = "https://gottcode.org/focuswriter/focuswriter-${version}-src.tar.bz2";
+    sha256 = "0321wqhjfs020q113lgh959qq03zfamm72zk22mnqxf3ng3adc3g";
+  };
+
+  nativeBuildInputs = [ pkgconfig qmake qttools ];
+  buildInputs = [ hunspell qtbase qtmultimedia ];
+
+  enableParallelBuilding = true;
+
+  qmakeFlags = [ "PREFIX=/" ];
+  installFlags = [ "INSTALL_ROOT=$(out)" ];
+
+  meta = with stdenv.lib; {
+    description = "Simple, distraction-free writing environment";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ madjar ];
+    platforms = platforms.linux;
+    homepage = https://gottcode.org/focuswriter/;
+  };
+}