@@ -1,6 +1,8 @@
1−{ stdenv, fetchurl, glib, gtk2, intltool, menu-cache, pango, pkgconfig, vala_0_34
2−, extraOnly ? false }:
1+{ stdenv, fetchurl, glib, intltool, menu-cache, pango, pkgconfig, vala_0_34
2+, extraOnly ? false
3+, withGtk3 ? false, gtk2, gtk3 }:
34let
5+ gtk = if withGtk3 then gtk3 else gtk2;
46 inherit (stdenv.lib) optional;
57in
68stdenv.mkDerivation rec {
@@ -14,10 +16,13 @@ stdenv.mkDerivation rec {
1416 sha256 = "0nlvfwh09gbq8bkbvwnw6iqr918rrs9gc9ljb9pjspyg408bn1n7";
1517 };
1618
17− buildInputs = [ glib gtk2 intltool pango pkgconfig vala_0_34 ]
19+ buildInputs = [ glib gtk intltool pango pkgconfig vala_0_34 ]
1820 ++ optional (!extraOnly) menu-cache;
1921
20− configureFlags = optional extraOnly "--with-extra-only";
22+ configureFlags = [ (optional extraOnly "--with-extra-only")
23+ (optional withGtk3 "--with-gtk=3") ];
24+
25+ enableParallelBuilding = true;
2126
2227 meta = with stdenv.lib; {
2328 homepage = http://blog.lxde.org/?cat=28/;