2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, evdev-proto
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "mtdev";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.1.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "https://bitmath.org/code/mtdev/${pname}-${version}.tar.bz2";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-oQetrSEB/srFSsf58OCg3RVdlUGT2lXCNAyX8v8dgU4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isFreeBSD evdev-proto;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
url = "https://bitmath.org/git/mtdev.git";
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://bitmath.org/code/mtdev/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Multitouch Protocol Translation Library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mtdev-test";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
The mtdev is a stand-alone library which transforms all variants of
|
|
|
|
kernel MT events to the slotted type B protocol. The events put into
|
|
|
|
mtdev may be from any MT device, specifically type A without contact
|
|
|
|
tracking, type A with contact tracking, or type B with contact tracking.
|
|
|
|
See the kernel documentation for further details.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
2023-02-02 18:25:31 +00:00
|
|
|
platforms = with platforms; freebsd ++ linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|