2020-07-15 05:02:54 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, python3 }:
|
2014-07-22 16:37:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-29 20:28:01 +01:00
|
|
|
pname = "libevdev";
|
2020-03-05 08:53:05 +00:00
|
|
|
version = "1.9.0";
|
2014-07-22 16:37:13 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-29 20:28:01 +01:00
|
|
|
url = "https://www.freedesktop.org/software/${pname}/${pname}-${version}.tar.xz";
|
2020-03-05 08:53:05 +00:00
|
|
|
sha256 = "17pb5375njb1r05xmk0r57a2j986ihglh2n5nqcylbag4rj8mqg7";
|
2014-07-22 16:37:13 +01:00
|
|
|
};
|
|
|
|
|
2020-07-15 05:02:54 +01:00
|
|
|
patches = [
|
|
|
|
# Fix libevdev-python tests on aarch64
|
|
|
|
# https://gitlab.freedesktop.org/libevdev/libevdev/merge_requests/63
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.freedesktop.org/libevdev/libevdev/commit/66113fe84f62bab3a672a336eb10b255d2aa5ce7.patch";
|
|
|
|
sha256 = "gZKr/P+/OqU69IGslP8CQlcGuyzA/ulcm+nGwHdis58=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-02-25 00:59:03 +00:00
|
|
|
nativeBuildInputs = [ python3 ];
|
2014-07-22 16:37:13 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Wrapper library for evdev devices";
|
2020-03-05 08:53:05 +00:00
|
|
|
homepage = "http://www.freedesktop.org/software/libevdev/doc/latest/index.html";
|
2014-07-22 16:37:13 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.amorsillo ];
|
|
|
|
};
|
|
|
|
}
|