NixOS/nixpkgs — pull request #5162 by coreyoconnor (2014-11-28 01:56:21+00:00)
Title: Add systemd system sleep hook dir

Enables the use and configuration of hooks in /etc/systemd/system-sleep. Which is used, for instance, by upower to notify the upower daemon of resume.
In order for NixOS to manage the system-sleep directory the systemd Makefile.am must be patched. Otherwise systemd will attempt to create and write to the directory directly during build. Which will fail. Since Makefile.am is patched the systemd build is extended to depend on automake and autoconf.