{stdenv, fetchurl, pkgconfig, libxml2, curl, wirelesstools, glib, openssl}:

stdenv.mkDerivation rec {
  name = "conky-1.9.0";

  src = fetchurl {
    url = "mirror://sourceforge/conky/${name}.tar.bz2";
    sha256 = "0vxvjmi3cdvnp994sv5zcdyncfn0mlxa71p2wm9zpyrmy58bbwds";
  };

  patches = [ ./stdbool.patch ];

  buildInputs = [ pkgconfig libxml2 curl wirelesstools glib openssl ];
  configureFlags =
    (map (x: "--disable-${x}") [ "x11" "xdamage" "own-window" "xft" "lua" "ncurses" ])
    ++ (map (x: "--enable-${x}") [ "mpd" "double-buffer" "wlan" "rss" ]);

  meta = {
    homepage = http://conky.sourceforge.net/;
    description = "Conky is an advanced, highly configurable system monitor complied without X based on torsmo";
    maintainers = [ stdenv.lib.maintainers.guibert ];
  };
}


{stdenv, fetchurl, pkgconfig, libxml2, curl, wirelesstools, glib, openssl}:

stdenv.mkDerivation rec {
  name = "conky-1.9.0";

  src = fetchurl {
    url = "mirror://sourceforge/conky/${name}.tar.bz2";
    sha256 = "0vxvjmi3cdvnp994sv5zcdyncfn0mlxa71p2wm9zpyrmy58bbwds";
  };

  patches = [ ./stdbool.patch ];

  buildInputs = [ pkgconfig libxml2 curl wirelesstools glib openssl ];
  configureFlags =
    (map (x: "--disable-${x}") [ "x11" "xdamage" "own-window" "xft" "lua" "ncurses" ])
    ++ (map (x: "--enable-${x}") [ "mpd" "double-buffer" "wlan" "rss" ]);

  meta = {
    homepage = http://conky.sourceforge.net/;
    description = "Conky is an advanced, highly configurable system monitor complied without X based on torsmo";
    maintainers = [ stdenv.lib.maintainers.guibert ];
    license = stdenv.lib.licenses.gpl3Plus;
  };
}

Add license attribute to meta.
conky: Add license attribute to meta.

As the GPL license is more restrictive than the BSD license of the original
(torsmo) of the fork, I'm adding GPL as the license here.

Signed-off-by: aszlig <ee1aa092358634f9c53f01b5a783726c9e21b35a@redmoonstudios.org>
