diff options
author | Robin Gloster <mail@glob.in> | 2018-05-10 01:01:21 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2018-05-11 15:38:43 +0200 |
commit | 93b4e6956e0fe80bce72733804ef4983c402120f (patch) | |
tree | db422329de8a3804266880c65d7986be2dbc9183 | |
parent | 46440d3426bf3eaeb5082713543ed008c8661a03 (diff) | |
download | nixlib-93b4e6956e0fe80bce72733804ef4983c402120f.tar nixlib-93b4e6956e0fe80bce72733804ef4983c402120f.tar.gz nixlib-93b4e6956e0fe80bce72733804ef4983c402120f.tar.bz2 nixlib-93b4e6956e0fe80bce72733804ef4983c402120f.tar.lz nixlib-93b4e6956e0fe80bce72733804ef4983c402120f.tar.xz nixlib-93b4e6956e0fe80bce72733804ef4983c402120f.tar.zst nixlib-93b4e6956e0fe80bce72733804ef4983c402120f.zip |
acpid: fix cross
-rw-r--r-- | pkgs/os-specific/linux/acpid/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/acpid/default.nix b/pkgs/os-specific/linux/acpid/default.nix index 7a234b16c913..f5a0cb25c803 100644 --- a/pkgs/os-specific/linux/acpid/default.nix +++ b/pkgs/os-specific/linux/acpid/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, autoreconfHook }: stdenv.mkDerivation rec { name = "acpid-2.0.29"; @@ -8,6 +8,15 @@ stdenv.mkDerivation rec { sha256 = "1zq38al07z92r2md18zivrzgjqnn7m2wahdpgri6wijwjwkknl2q"; }; + nativeBuildInputs = [ autoreconfHook ]; + + postPatch = '' + substituteInPlace configure.ac \ + --replace "AC_FUNC_MALLOC" "" \ + --replace "AC_FUNC_REALLOC" "" \ + --replace "strrchr strtol" "strrchr strtol malloc realloc" + ''; + meta = with stdenv.lib; { homepage = http://tedfelix.com/linux/acpid-netlink.html; description = "A daemon for delivering ACPI events to userspace programs"; |