depot/third_party/nixpkgs/pkgs/os-specific/linux/acpid/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
808 B
Nix

{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
name = "acpid-2.0.32";
src = fetchurl {
url = "mirror://sourceforge/acpid2/${name}.tar.xz";
sha256 = "0zhmxnhnhg4v1viw82yjr22kram6k5k1ixznhayk8cnw7q5x7lpj";
};
nativeBuildInputs = [ autoreconfHook ];
# remove when https://sourceforge.net/p/acpid2/code/merge-requests/1/ is merged
postPatch = ''
substituteInPlace configure.ac \
--replace "AC_FUNC_MALLOC" "" \
--replace "AC_FUNC_REALLOC" "" \
--replace "strrchr strtol" "strrchr strtol malloc realloc"
'';
meta = with stdenv.lib; {
homepage = "https://sourceforge.net/projects/acpid2/";
description = "A daemon for delivering ACPI events to userspace programs";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}