libevdev: fix aarch64 support

This commit is contained in:
Jan Tojnar 2020-07-15 06:02:54 +02:00
parent d9f416313a
commit f83c9a7561
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python3 }: { stdenv, fetchurl, fetchpatch, python3 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libevdev"; pname = "libevdev";
@ -9,6 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "17pb5375njb1r05xmk0r57a2j986ihglh2n5nqcylbag4rj8mqg7"; sha256 = "17pb5375njb1r05xmk0r57a2j986ihglh2n5nqcylbag4rj8mqg7";
}; };
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=";
})
];
nativeBuildInputs = [ python3 ]; nativeBuildInputs = [ python3 ];
meta = with stdenv.lib; { meta = with stdenv.lib; {