depot/third_party/nixpkgs/pkgs/development/libraries/libei/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

69 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, fetchFromGitLab
, attr
, libevdev
, libxkbcommon
, meson
, ninja
, pkg-config
, protobuf
, protobufc
, python3
, systemd
}:
let
munit = fetchFromGitHub {
owner = "nemequ";
repo = "munit";
rev = "fbbdf1467eb0d04a6ee465def2e529e4c87f2118";
hash = "sha256-qm30C++rpLtxBhOABBzo+6WILSpKz2ibvUvoe8ku4ow=";
};
in
stdenv.mkDerivation rec {
pname = "libei";
version = "1.1.0";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libinput";
repo = "libei";
rev = version;
hash = "sha256-ebZZ2dGXrPBUDPsuu5GZY5kDv9qndnxepQUGFDe9PUg=";
};
buildInputs = [
libevdev
libxkbcommon
protobuf
protobufc
systemd
];
nativeBuildInputs = [
meson
ninja
pkg-config
(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";
homepage = "https://gitlab.freedesktop.org/libinput/libei";
license = licenses.mit;
maintainers = [ maintainers.pedrohlc ];
platforms = platforms.linux;
};
}