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