2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, automake
|
|
|
|
, autoconf
|
|
|
|
, libX11
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libstroke";
|
|
|
|
version = "0.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "https://web.archive.org/web/20161204100704/http://etla.net/libstroke/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0bbpqzsqh9zrc6cg62f6vp1p4dzvv37blsd0gdlzdskgwvyzba8d";
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [ automake autoconf ];
|
2022-11-21 17:40:18 +00:00
|
|
|
buildInputs = [ libX11 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# libstroke ships with an ancient config.sub that doesn't know about x86_64, so regenerate it.
|
|
|
|
# Also, modern automake doesn't like things and returns error code 63. But it generates the file.
|
|
|
|
preConfigure = ''
|
|
|
|
rm config.sub
|
|
|
|
autoconf
|
|
|
|
automake -a || true
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library for simple gesture recognition";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://web.archive.org/web/20161204100704/http://etla.net/libstroke/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' libstroke, last updated in 2001, still successfully provides a basic
|
|
|
|
gesture recognition engine based around a 3x3 grid. It's simple and
|
|
|
|
easy to work with, and notably used by FVWM.
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|