summary refs log tree commit diff
path: root/pkgs/applications/editors/focuswriter
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@gmail.com>2017-10-01 01:50:29 +0000
committerYegor Timoshenko <yegortimoshenko@gmail.com>2017-10-01 01:53:06 +0000
commit31ab1a35bf96f9f2e9f0c9016d6bbd9f540f69d1 (patch)
tree385aca38ab460309fb08ee2b89110e60b48c05da /pkgs/applications/editors/focuswriter
parent5de2cffda02693dacbd9ed545be65085a5c37807 (diff)
downloadnixpkgs-31ab1a35bf96f9f2e9f0c9016d6bbd9f540f69d1.tar
nixpkgs-31ab1a35bf96f9f2e9f0c9016d6bbd9f540f69d1.tar.gz
nixpkgs-31ab1a35bf96f9f2e9f0c9016d6bbd9f540f69d1.tar.bz2
nixpkgs-31ab1a35bf96f9f2e9f0c9016d6bbd9f540f69d1.tar.lz
nixpkgs-31ab1a35bf96f9f2e9f0c9016d6bbd9f540f69d1.tar.xz
nixpkgs-31ab1a35bf96f9f2e9f0c9016d6bbd9f540f69d1.tar.zst
nixpkgs-31ab1a35bf96f9f2e9f0c9016d6bbd9f540f69d1.zip
focuswriter: 1.5.3 -> 1.6.7, Qt4 -> Qt5, GPLv2 -> GPLv3
Diffstat (limited to 'pkgs/applications/editors/focuswriter')
-rw-r--r--pkgs/applications/editors/focuswriter/default.nix24
1 files changed, 13 insertions, 11 deletions
diff --git a/pkgs/applications/editors/focuswriter/default.nix b/pkgs/applications/editors/focuswriter/default.nix
index 28106cf876b..10816e0a283 100644
--- a/pkgs/applications/editors/focuswriter/default.nix
+++ b/pkgs/applications/editors/focuswriter/default.nix
@@ -1,25 +1,27 @@
-{ stdenv, fetchurl, qt4, qmake4Hook, pkgconfig, hunspell }:
+{ stdenv, fetchurl, pkgconfig, qmake, qttools, hunspell, qtbase, qtmultimedia }:
 
 stdenv.mkDerivation rec {
   name = "focuswriter-${version}";
-  version = "1.5.3";
+  version = "1.6.7";
 
   src = fetchurl {
-    url = http://gottcode.org/focuswriter/focuswriter-1.5.3-src.tar.bz2;
-    sha256 = "1i58jxbiy95ijf81g8c3gwxhcg3irzssna3wv7vhrd57g4lcfj0w";
+    url = "https://gottcode.org/focuswriter/focuswriter-${version}-src.tar.bz2";
+    sha256 = "10rqzinr6yd6ca06rklg34kdc08a3xgygfzmprsfg7gdsybfay5z";
   };
 
-  buildInputs = [ qt4 qmake4Hook pkgconfig hunspell ];
-  
-  qmakeFlags = [ "PREFIX=/" ];
+  nativeBuildInputs = [ pkgconfig qmake qttools ];
+  buildInputs = [ hunspell qtbase qtmultimedia ];
+
+  enableParallelBuilding = true;
 
+  qmakeFlags = [ "PREFIX=/" ];
   installFlags = [ "INSTALL_ROOT=$(out)" ];
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "Simple, distraction-free writing environment";
-    license = stdenv.lib.licenses.gpl2;
-    maintainers = [ stdenv.lib.maintainers.madjar ];
-    platforms = stdenv.lib.platforms.all;
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ madjar ];
+    platforms = platforms.all;
     homepage = https://gottcode.org/focuswriter/;
   };
 }