Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
automake,
|
|
autoconf,
|
|
libX11,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libstroke";
|
|
version = "0.5.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://web.archive.org/web/20161204100704/http://etla.net/libstroke/${pname}-${version}.tar.gz";
|
|
sha256 = "0bbpqzsqh9zrc6cg62f6vp1p4dzvv37blsd0gdlzdskgwvyzba8d";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 1i'#include <string.h>' libstroke/stroke.c
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
automake
|
|
autoconf
|
|
];
|
|
buildInputs = [ libX11 ];
|
|
|
|
# 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 = {
|
|
description = "Library for simple gesture recognition";
|
|
homepage = "https://web.archive.org/web/20161204100704/http://etla.net/libstroke/";
|
|
license = lib.licenses.gpl2;
|
|
|
|
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.
|
|
'';
|
|
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|