modules_install hook causes constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} (rid, permission, module)
Seems like a hook_install() in the .install file for the feature will work if called with 

drupal_flush_all_caches();


I am not sure if this is the best solution, but it seems to work for me