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