NixOS/nixpkgs — pull request #4444 by abbradar (2014-10-09 19:16:58+00:00)
Title: Fix handling special cases in "substitute", portability fixes

Rebased #4438 against staging. cc @wmertens, @bjornfor.