Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, evdev-proto }: 2 3stdenv.mkDerivation rec { 4 pname = "mtdev"; 5 version = "1.1.6"; 6 7 src = fetchurl { 8 url = "https://bitmath.org/code/mtdev/${pname}-${version}.tar.bz2"; 9 sha256 = "1q700h9dqcm3zl6c3gj0qxxjcx6ibw2c51wjijydhwdcm26v5mqm"; 10 }; 11 12 buildInputs = lib.optional stdenv.hostPlatform.isFreeBSD evdev-proto; 13 14 meta = with lib; { 15 homepage = "https://bitmath.org/code/mtdev/"; 16 description = "Multitouch Protocol Translation Library"; 17 longDescription = '' 18 The mtdev is a stand-alone library which transforms all variants of 19 kernel MT events to the slotted type B protocol. The events put into 20 mtdev may be from any MT device, specifically type A without contact 21 tracking, type A with contact tracking, or type B with contact tracking. 22 See the kernel documentation for further details. 23 ''; 24 license = licenses.mit; 25 platforms = with platforms; freebsd ++ linux; 26 }; 27}