···11+{stdenv, fetchurl, automake, autoconf, x11}:
22+33+stdenv.mkDerivation {
44+ name = "libstroke-0.5.1";
55+66+ src = fetchurl {
77+ url = http://etla.net/libstroke/libstroke-0.5.1.tar.gz;
88+ sha256 = "0da9f5fde66feaf6697ba069baced8fb3772c3ddc609f39861f92788f5c7772d";
99+ };
1010+1111+ buildInputs = [ automake autoconf x11 ];
1212+1313+ # libstroke ships with an ancient config.sub that doesn't know about x86_64, so regenerate it.
1414+ # Also, modern automake doesn't like things and returns error code 63. But it generates the file.
1515+ preConfigure = ''
1616+ rm config.sub
1717+ autoconf
1818+ automake -a || true
1919+ '';
2020+2121+ meta = {
2222+ description = "libstroke, a library for simple gesture recognition";
2323+ homepage = http://etla.net/libstroke/;
2424+ license = stdenv.lib.licenses.gpl2;
2525+2626+ longDescription =
2727+ '' libstroke, last updated in 2001, still successfully provides a basic
2828+ gesture recognition engine based around a 3x3 grid. It's simple and
2929+ easy to work with, and notably used by FVWM.
3030+ '';
3131+3232+ };
3333+}