@@ -1,25 +1,27 @@
1−{ stdenv, fetchurl, qt4, qmake4Hook, pkgconfig, hunspell }:
1+{ stdenv, fetchurl, pkgconfig, qmake, qttools, hunspell, qtbase, qtmultimedia }:
3stdenv.mkDerivation rec {
3stdenv.mkDerivation rec {
4 name = "focuswriter-${version}";
4 name = "focuswriter-${version}";
5− version = "1.5.3";
5+ version = "1.6.7";
7 src = fetchurl {
7 src = fetchurl {
8− url = http://gottcode.org/focuswriter/focuswriter-1.5.3-src.tar.bz2;
8+ url = "https://gottcode.org/focuswriter/focuswriter-${version}-src.tar.bz2";
9− sha256 = "1i58jxbiy95ijf81g8c3gwxhcg3irzssna3wv7vhrd57g4lcfj0w";
9+ sha256 = "10rqzinr6yd6ca06rklg34kdc08a3xgygfzmprsfg7gdsybfay5z";
12− buildInputs = [ qt4 qmake4Hook pkgconfig hunspell ];
12+ nativeBuildInputs = [ pkgconfig qmake qttools ];
13−
13+ buildInputs = [ hunspell qtbase qtmultimedia ];
14− qmakeFlags = [ "PREFIX=/" ];
14+
15+ enableParallelBuilding = true;
17+ qmakeFlags = [ "PREFIX=/" ];
16 installFlags = [ "INSTALL_ROOT=$(out)" ];
18 installFlags = [ "INSTALL_ROOT=$(out)" ];
18− meta = {
20+ meta = with stdenv.lib; {
19 description = "Simple, distraction-free writing environment";
21 description = "Simple, distraction-free writing environment";
20− license = stdenv.lib.licenses.gpl2;
22+ license = licenses.gpl3Plus;
21− maintainers = [ stdenv.lib.maintainers.madjar ];
23+ maintainers = with maintainers; [ madjar ];
22− platforms = stdenv.lib.platforms.all;
24+ platforms = platforms.all;
23 homepage = https://gottcode.org/focuswriter/;
25 homepage = https://gottcode.org/focuswriter/;