1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7}:
8stdenv.mkDerivation rec {
9 pname = "libuinputplus";
10 version = "2021-04-02";
11
12 # adds missing cmake install directives
13 # https://github.com/YukiWorkshop/libuInputPlus/pull/7
14 patches = [ ./0001-Add-cmake-install-directives.patch ];
15
16 src = fetchFromGitHub {
17 owner = "YukiWorkshop";
18 repo = "libuInputPlus";
19 rev = "f7f18eb339bba61a43f2cad481a9b1a453a66957";
20 sha256 = "0sind2ghhy4h9kfkr5hsmhcq0di4ifwqyv4gac96rgj5mwvs33lp";
21 };
22
23 nativeBuildInputs = [
24 cmake
25 pkg-config
26 ];
27
28 meta = with lib; {
29 inherit (src.meta) homepage;
30 description = "Easy-to-use uinput library in C++";
31 license = licenses.mit;
32 maintainers = [ ];
33 platforms = with platforms; linux;
34 };
35}