about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libevdev
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-07-15 06:02:54 +0200
committerAlyssa Ross <hi@alyssa.is>2020-08-15 18:21:35 +0000
commitc11f2cbe1d1a8d00ba3b641575534e0a60ea0582 (patch)
tree07407a9a2531d477c9d69dae2d10dd59e845fe29 /nixpkgs/pkgs/development/libraries/libevdev
parentcb43ea19f83f1f4b45e2f9c3307c95b6c711ae36 (diff)
downloadnixlib-c11f2cbe1d1a8d00ba3b641575534e0a60ea0582.tar
nixlib-c11f2cbe1d1a8d00ba3b641575534e0a60ea0582.tar.gz
nixlib-c11f2cbe1d1a8d00ba3b641575534e0a60ea0582.tar.bz2
nixlib-c11f2cbe1d1a8d00ba3b641575534e0a60ea0582.tar.lz
nixlib-c11f2cbe1d1a8d00ba3b641575534e0a60ea0582.tar.xz
nixlib-c11f2cbe1d1a8d00ba3b641575534e0a60ea0582.tar.zst
nixlib-c11f2cbe1d1a8d00ba3b641575534e0a60ea0582.zip
libevdev: fix aarch64 support
(cherry picked from commit f83c9a7561696422a00776065033af35477dba58)
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libevdev')
-rw-r--r--nixpkgs/pkgs/development/libraries/libevdev/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libevdev/default.nix b/nixpkgs/pkgs/development/libraries/libevdev/default.nix
index 9b1184f1c0b1..c769006e0bff 100644
--- a/nixpkgs/pkgs/development/libraries/libevdev/default.nix
+++ b/nixpkgs/pkgs/development/libraries/libevdev/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, python3 }:
+{ stdenv, fetchurl, fetchpatch, python3 }:
 
 stdenv.mkDerivation rec {
   pname = "libevdev";
@@ -9,6 +9,15 @@ stdenv.mkDerivation rec {
     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 ];
 
   meta = with stdenv.lib; {