acpid: fix cross

This commit is contained in:
Robin Gloster 2018-05-10 01:01:21 +02:00
parent 46440d3426
commit 93b4e6956e
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
name = "acpid-2.0.29";
@ -8,6 +8,15 @@ stdenv.mkDerivation rec {
sha256 = "1zq38al07z92r2md18zivrzgjqnn7m2wahdpgri6wijwjwkknl2q";
};
nativeBuildInputs = [ autoreconfHook ];
postPatch = ''
substituteInPlace configure.ac \
--replace "AC_FUNC_MALLOC" "" \
--replace "AC_FUNC_REALLOC" "" \
--replace "strrchr strtol" "strrchr strtol malloc realloc"
'';
meta = with stdenv.lib; {
homepage = http://tedfelix.com/linux/acpid-netlink.html;
description = "A daemon for delivering ACPI events to userspace programs";