2018-05-10 01:01:21 +02:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
2009-02-11 00:12:18 +01:00
|
|
|
|
2010-02-11 19:59:58 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-04-20 20:06:43 +02:00
|
|
|
name = "acpid-2.0.29";
|
2012-11-02 23:56:13 +01:00
|
|
|
|
2009-02-11 00:12:18 +01:00
|
|
|
src = fetchurl {
|
2013-11-20 19:50:57 +01:00
|
|
|
url = "mirror://sourceforge/acpid2/${name}.tar.xz";
|
2018-04-20 20:06:43 +02:00
|
|
|
sha256 = "1zq38al07z92r2md18zivrzgjqnn7m2wahdpgri6wijwjwkknl2q";
|
2009-02-11 00:12:18 +01:00
|
|
|
};
|
|
|
|
|
2018-05-10 01:01:21 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "AC_FUNC_MALLOC" "" \
|
|
|
|
--replace "AC_FUNC_REALLOC" "" \
|
|
|
|
--replace "strrchr strtol" "strrchr strtol malloc realloc"
|
|
|
|
'';
|
|
|
|
|
2016-04-30 12:32:18 +02:00
|
|
|
meta = with stdenv.lib; {
|
2012-11-02 23:56:13 +01:00
|
|
|
homepage = http://tedfelix.com/linux/acpid-netlink.html;
|
2009-02-11 00:12:18 +01:00
|
|
|
description = "A daemon for delivering ACPI events to userspace programs";
|
2016-04-30 12:32:18 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2009-02-11 00:12:18 +01:00
|
|
|
};
|
|
|
|
}
|