Add the required packages to buildInputs. Create a wrapper around apr-1-config so that internal sed commands succeed.