{ stdenv, fetchurl, x11, lua, gettext, groff }:

stdenv.mkDerivation {
  name = "ion-3-20090110";
  meta = {
    description = "Ion is a tiling tabbed window manager designed with keyboard users in mind.";
    homepage = http://modeemi.fi/~tuomov/ion;
  };
  src = fetchurl {
    url = http://tuomov.iki.fi/software/dl/ion-3-20090110.tar.gz;
    sha256 = "1nkks5a95986nyfkxvg2rik6zmwx0lh7szd5fji7yizccwzc9xns";
  };
  buildInputs = [ x11 lua gettext groff ];
  buildFlags = "LUA_DIR=${lua} X11_PREFIX=/no-such-path PREFIX=\${out}";
  installFlags = "PREFIX=\${out}";
}
