2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchFromGitLab
|
|
|
|
, libevdev
|
|
|
|
, libxkbcommon
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, protobuf
|
|
|
|
, protobufc
|
|
|
|
, systemd
|
2024-04-21 15:54:59 +00:00
|
|
|
, buildPackages
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
munit = fetchFromGitHub {
|
|
|
|
owner = "nemequ";
|
|
|
|
repo = "munit";
|
|
|
|
rev = "fbbdf1467eb0d04a6ee465def2e529e4c87f2118";
|
|
|
|
hash = "sha256-qm30C++rpLtxBhOABBzo+6WILSpKz2ibvUvoe8ku4ow=";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libei";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.2.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "libinput";
|
|
|
|
repo = "libei";
|
|
|
|
rev = version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-8n/C0rBlyhY8SaxkwU+tDskwSQObLRrR+utk4Ktgb7U=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libevdev
|
|
|
|
libxkbcommon
|
|
|
|
protobuf
|
|
|
|
protobufc
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2024-04-21 15:54:59 +00:00
|
|
|
(buildPackages.python3.withPackages (ps: with ps; [
|
2024-01-13 08:15:51 +00:00
|
|
|
attrs
|
|
|
|
jinja2
|
|
|
|
pytest
|
|
|
|
python-dbusmock
|
|
|
|
strenum
|
|
|
|
structlog
|
|
|
|
]))
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
ln -s "${munit}" ./subprojects/munit
|
|
|
|
patchShebangs ./proto/ei-scanner
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for Emulated Input";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ei-debug-events";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://gitlab.freedesktop.org/libinput/libei";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.pedrohlc ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|