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