summary refs log tree commit diff
path: root/pkgs/development/libraries/libei
diff options
context:
space:
mode:
authorPedroHLC ☭ <root@pedrohlc.com>2023-05-18 10:49:34 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-05-25 19:40:22 +0000
commit88c31e1e1305022292fdfc419011d4e55e505fd8 (patch)
tree4fdcf3d2fc43a9c5fb90d5f704ad1ff19cf9589a /pkgs/development/libraries/libei
parent541f88fb796bee5afc137a800bac2efbdcafdff0 (diff)
downloadnixpkgs-88c31e1e1305022292fdfc419011d4e55e505fd8.tar
nixpkgs-88c31e1e1305022292fdfc419011d4e55e505fd8.tar.gz
nixpkgs-88c31e1e1305022292fdfc419011d4e55e505fd8.tar.bz2
nixpkgs-88c31e1e1305022292fdfc419011d4e55e505fd8.tar.lz
nixpkgs-88c31e1e1305022292fdfc419011d4e55e505fd8.tar.xz
nixpkgs-88c31e1e1305022292fdfc419011d4e55e505fd8.tar.zst
nixpkgs-88c31e1e1305022292fdfc419011d4e55e505fd8.zip
libei: init at 1.0.0rc1
Diffstat (limited to 'pkgs/development/libraries/libei')
-rw-r--r--pkgs/development/libraries/libei/default.nix71
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libei/default.nix b/pkgs/development/libraries/libei/default.nix
new file mode 100644
index 00000000000..2b45ef52454
--- /dev/null
+++ b/pkgs/development/libraries/libei/default.nix
@@ -0,0 +1,71 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, fetchFromGitLab
+, attr
+, libevdev
+, libxkbcommon
+, meson
+, ninja
+, pkg-config
+, protobuf
+, protobufc
+, python3
+, python3Packages
+, systemd
+}:
+let
+  munit = fetchFromGitHub {
+    owner = "nemequ";
+    repo = "munit";
+    rev = "fbbdf1467eb0d04a6ee465def2e529e4c87f2118";
+    hash = "sha256-qm30C++rpLtxBhOABBzo+6WILSpKz2ibvUvoe8ku4ow=";
+  };
+in
+stdenv.mkDerivation rec {
+  pname = "libei";
+  version = "0.99.1";
+
+  src = fetchFromGitLab {
+    domain = "gitlab.freedesktop.org";
+    owner = "libinput";
+    repo = "libei";
+    rev = version;
+    hash = "sha256-r/rkN2d8P30P/IL1YaLWWRbA5s3uVq5Fc/K1vhS31tw=";
+  };
+
+  buildInputs = [
+    libevdev
+    libxkbcommon
+    protobuf
+    protobufc
+    systemd
+  ];
+  nativeBuildInputs = [
+    attr
+    meson
+    ninja
+    pkg-config
+    python3
+  ] ++
+  (with python3Packages; [
+    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;
+  };
+}