hscolour-bootstrap: allow setting RTS options for the hscolour binary we use to generate our documentation

Other tools like hsc2hs or haddock allows this, too, and some tools explicitly
set memory limits on these tools during the build (i.e. llvm-general-pure) by
exposing a GHCRTS environment variable. See [1] for a concrete example of this
issue.

[1] https://github.com/NixOS/nixpkgs/issues/2939
haskell-git-annex: update to version 5.20140613
hscolour-bootstrap: GHC 6.10.x and earlier don't support the -rtsopts option
nixUnstable: bump
Move property processing, type checking, and merge code into a function

This makes the relationship between property types clearer, and more
importantly will let option types parameterized by other option types
reuse the code for delegated type checking and merging.
types.listOf: Use mergeDefinitions to handle each element

This simplifies typechecking and allows properties to be used inside the lists
types.attrsOf: Use mergeDefinitions to handle each element

This simplifes typechecking and allows properties to be used inside of
the attribute sets.

This fixes the empty synergy-client and synergy-server services
previously generated on systems with synergy disabled.
types.functionTo: Use mergeDefinitions on the function return

This symplifies typechecking and allows properties to be used inside the
function body. It also makes possible checking the type of the result.
Get all lib functions from lib, not pkgs.lib, in modules
modules.nix: Generate the extra argument set from the configuration

This allows for module arguments to be handled modularly, in particular
allowing the nixpkgs module to handle the nixpkgs import internally.
This creates the __internal option namespace, which should only be added
to by the module system itself.
nixos: Don't evaluate twice to get the value of config.nixpkgs
evalModules: Add internal option for the check argument
Add comments about the module system interface

Ideally the module system could be configured pretty much completely by
the contents of the modules themselves, so add comments about avoiding
complicating it further and possibly removing now-redundant
configurability from the existing interface.
Move most extra args out of eval-config.nix
Add comment about limitation on __internal.check
Allow __internal.check to depend on other config values
Fix import using module args