Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
73 lines
1.3 KiB
Nix
73 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchFromGitLab,
|
|
libevdev,
|
|
libxkbcommon,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
protobuf,
|
|
protobufc,
|
|
systemd,
|
|
buildPackages,
|
|
}:
|
|
let
|
|
munit = fetchFromGitHub {
|
|
owner = "nemequ";
|
|
repo = "munit";
|
|
rev = "fbbdf1467eb0d04a6ee465def2e529e4c87f2118";
|
|
hash = "sha256-qm30C++rpLtxBhOABBzo+6WILSpKz2ibvUvoe8ku4ow=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "libei";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "libinput";
|
|
repo = "libei";
|
|
rev = version;
|
|
hash = "sha256-PqQpJz88tDzjwsBuwxpWcGAWz6Gp6A/oAOS87uxGOGs=";
|
|
};
|
|
|
|
buildInputs = [
|
|
libevdev
|
|
libxkbcommon
|
|
protobuf
|
|
protobufc
|
|
systemd
|
|
];
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
(buildPackages.python3.withPackages (
|
|
ps: with ps; [
|
|
attrs
|
|
jinja2
|
|
pytest
|
|
python-dbusmock
|
|
strenum
|
|
structlog
|
|
]
|
|
))
|
|
];
|
|
|
|
postPatch = ''
|
|
ln -s "${munit}" ./subprojects/munit
|
|
patchShebangs ./proto/ei-scanner
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Library for Emulated Input";
|
|
mainProgram = "ei-debug-events";
|
|
homepage = "https://gitlab.freedesktop.org/libinput/libei";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.pedrohlc ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|