nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 35 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 buildInputs = [ automake autoconf xlibsWrapper ]; 13 14 # libstroke ships with an ancient config.sub that doesn't know about x86_64, so regenerate it. 15 # Also, modern automake doesn't like things and returns error code 63. But it generates the file. 16 preConfigure = '' 17 rm config.sub 18 autoconf 19 automake -a || true 20 ''; 21 22 meta = { 23 description = "A library for simple gesture recognition"; 24 homepage = "https://web.archive.org/web/20161204100704/http://etla.net/libstroke/"; 25 license = lib.licenses.gpl2; 26 27 longDescription = 28 '' libstroke, last updated in 2001, still successfully provides a basic 29 gesture recognition engine based around a 3x3 grid. It's simple and 30 easy to work with, and notably used by FVWM. 31 ''; 32 33 platforms = lib.platforms.linux; 34 }; 35}