2018-05-09 23:01:21 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook }:
|
2009-02-10 23:12:18 +00:00
|
|
|
|
2010-02-11 18:59:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-07-22 03:25:39 +00:00
|
|
|
name = "acpid-2.0.30";
|
2012-11-02 22:56:13 +00:00
|
|
|
|
2009-02-10 23:12:18 +00:00
|
|
|
src = fetchurl {
|
2013-11-20 18:50:57 +00:00
|
|
|
url = "mirror://sourceforge/acpid2/${name}.tar.xz";
|
2018-07-22 03:25:39 +00:00
|
|
|
sha256 = "1jzl7hiaspr5xkmsrbl69bib8cs3dp6bq5ix58fbskpnsdi7pdr8";
|
2009-02-10 23:12:18 +00:00
|
|
|
};
|
|
|
|
|
2018-05-09 23:01:21 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2018-05-11 12:44:54 +00:00
|
|
|
# remove when https://sourceforge.net/p/acpid2/code/merge-requests/1/ is merged
|
2018-05-09 23:01:21 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "AC_FUNC_MALLOC" "" \
|
|
|
|
--replace "AC_FUNC_REALLOC" "" \
|
|
|
|
--replace "strrchr strtol" "strrchr strtol malloc realloc"
|
|
|
|
'';
|
|
|
|
|
2016-04-30 10:32:18 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-11-02 22:56:13 +00:00
|
|
|
homepage = http://tedfelix.com/linux/acpid-netlink.html;
|
2009-02-10 23:12:18 +00:00
|
|
|
description = "A daemon for delivering ACPI events to userspace programs";
|
2016-04-30 10:32:18 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2009-02-10 23:12:18 +00:00
|
|
|
};
|
|
|
|
}
|