lol
at 18.09-beta 27 lines 810 B view raw
1{ stdenv, fetchurl, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 name = "acpid-2.0.30"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/acpid2/${name}.tar.xz"; 8 sha256 = "1jzl7hiaspr5xkmsrbl69bib8cs3dp6bq5ix58fbskpnsdi7pdr8"; 9 }; 10 11 nativeBuildInputs = [ autoreconfHook ]; 12 13 # remove when https://sourceforge.net/p/acpid2/code/merge-requests/1/ is merged 14 postPatch = '' 15 substituteInPlace configure.ac \ 16 --replace "AC_FUNC_MALLOC" "" \ 17 --replace "AC_FUNC_REALLOC" "" \ 18 --replace "strrchr strtol" "strrchr strtol malloc realloc" 19 ''; 20 21 meta = with stdenv.lib; { 22 homepage = http://tedfelix.com/linux/acpid-netlink.html; 23 description = "A daemon for delivering ACPI events to userspace programs"; 24 license = licenses.gpl2Plus; 25 platforms = platforms.linux; 26 }; 27}