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