nixpkgs-suyu/pkgs/os-specific/linux/acpid/default.nix

28 lines
810 B
Nix
Raw Normal View History

2018-05-10 01:01:21 +02:00
{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
name = "acpid-2.0.30";
src = fetchurl {
2013-11-20 19:50:57 +01:00
url = "mirror://sourceforge/acpid2/${name}.tar.xz";
sha256 = "1jzl7hiaspr5xkmsrbl69bib8cs3dp6bq5ix58fbskpnsdi7pdr8";
};
2018-05-10 01:01:21 +02:00
nativeBuildInputs = [ autoreconfHook ];
2018-05-11 14:44:54 +02:00
# remove when https://sourceforge.net/p/acpid2/code/merge-requests/1/ is merged
2018-05-10 01:01:21 +02:00
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; {
homepage = http://tedfelix.com/linux/acpid-netlink.html;
description = "A daemon for delivering ACPI events to userspace programs";
2016-04-30 12:32:18 +02:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}