nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 36 lines 1.2 kB view raw
1{lib, stdenv, fetchurl, automake, autoconf, xlibsWrapper}: 2 3stdenv.mkDerivation rec { 4 pname = "libstroke"; 5 version = "0.5.1"; 6 7 src = fetchurl { 8 url = "https://web.archive.org/web/20161204100704/http://etla.net/libstroke/${pname}-${version}.tar.gz"; 9 sha256 = "0bbpqzsqh9zrc6cg62f6vp1p4dzvv37blsd0gdlzdskgwvyzba8d"; 10 }; 11 12 nativeBuildInputs = [ automake autoconf ]; 13 buildInputs = [ xlibsWrapper ]; 14 15 # libstroke ships with an ancient config.sub that doesn't know about x86_64, so regenerate it. 16 # Also, modern automake doesn't like things and returns error code 63. But it generates the file. 17 preConfigure = '' 18 rm config.sub 19 autoconf 20 automake -a || true 21 ''; 22 23 meta = { 24 description = "A library for simple gesture recognition"; 25 homepage = "https://web.archive.org/web/20161204100704/http://etla.net/libstroke/"; 26 license = lib.licenses.gpl2; 27 28 longDescription = 29 '' libstroke, last updated in 2001, still successfully provides a basic 30 gesture recognition engine based around a 3x3 grid. It's simple and 31 easy to work with, and notably used by FVWM. 32 ''; 33 34 platforms = lib.platforms.linux; 35 }; 36}