{ stdenv, fetchurl, pkgconfig
, cairo, fontconfig, freetype, libXft, libXcursor, libXinerama
, libXpm, librsvg, libpng, fribidi, perl
}:

stdenv.mkDerivation rec {
  name = "fvwm-2.6.5";

  src = fetchurl {
    url = "ftp://ftp.fvwm.org/pub/fvwm/version-2/${name}.tar.bz2";
    sha256 = "1ks8igvmzm0m0sra05k8xzc8vkqy3gv1qskl6davw1irqnarjm11";
  };

  buildInputs = [
    pkgconfig cairo fontconfig freetype
    libXft libXcursor libXinerama libXpm
    librsvg libpng fribidi perl
  ];

  meta = {
    homepage = "http://fvwm.org";
    description = "A multiple large virtual desktop window manager";
    license = "GPLv2+";
  };
}

