udev182: fix build against linux 4.4 headers

Fix from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libudev0
This commit is contained in:
Joachim Fasting 2016-05-16 01:35:47 +02:00
parent ca730d4452
commit 4cf524e588
No known key found for this signature in database
GPG Key ID: 4330820E1E04DCF4

View File

@ -23,6 +23,11 @@ stdenv.mkDerivation rec {
"--disable-introspection"
];
postPatch = ''
sed -i 's:input.h:input-event-codes.h:' Makefile.in
sed -i '20a#include <stdint.h>' src/mtd_probe/mtd_probe.h
'';
NIX_LDFLAGS = [ "-lrt" ];
meta = with stdenv.lib; {