1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libevdev/default.nix

31 lines
953 B
Nix
Raw Normal View History

2020-07-15 05:02:54 +01:00
{ stdenv, fetchurl, fetchpatch, python3 }:
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";
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";
};
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 ];
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";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.amorsillo ];
};
}