php: make curl wrappers optional

cURL wrappers are experimental and break any application/library
that rely on $http_response_header
ssh-agent: Don't have a timeout by default

IMHO, having a short timeout (1h) defeats the point of using
ssh-agent, which is not to have to retype passphrases all the time. Of
course, users who want timeouts can set programs.ssh.agentTimeout.

This restores the 14.04 behaviour.
Merge pull request #5383 from robberer/tmp1

php: make curl wrappers optional
xorg-server: enable DRI3 (close #5381)

TEST needed. I tested on my NixOS Thinkpad with Optimus nvidia and intel
cards.  Testing in other architectures is needed.

This patch also improves the regular expressions that scan the build
configuration files to enable the building of a binary utility in
xf86-video-intel: intel-virtual-output. This utility is useful for some
Optimus laptops

DRI3 was added to xorg-server propagatedBuildInputs so now it's inherited
by several projects that can use it.
nixos/virtualbox: Revert disable hardening.

This reverts commit 5d67b17901ff2c9a18647bd9453c6b0d4294b875.

The issues have been resolved by ac603e208c98b260db675fa0c13be94fa95216f4.

Tested this with hostonlyifs and USB support with extension pack.

Conflicts:
	nixos/modules/programs/virtualbox-host.nix

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Tested-by: Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
cabal-install: update to version 1.20.0.4

The test suite had to be disabled because of https://github.com/haskell/cabal/issues/2285.
Haskell NG.
hackage-packages.nix: manual edits that need to backported to cabal2nix!
haskell-modules: implement shared library linking, check phase, object splitting, etc.
hackage-packages.nix: manually disable test suite for 'setenv'
haskell-generic-builder: re-write the way build inputs are found

Every package has a directory $out/nix-support/${ghc.name}-package.conf.d that
contains the transitive closure of all build inputs required to build this
package (and run the test suite).
hackage-packages.nix: manually disable haddock phase of 'hspec-discover'
hackage-packages.nix: manually disable test suite for 'doctest'
haskell-generic-builder: set $GHC_PACKAGE_PATH to fix doctest-style unit tests
haskell-generic-builder: re-enable support for running jailbreak-cabal
hackage-packages.nix: manually jailbreak ChasingBottoms
haskell-generic-builder: add 'hasActiveLibrary' convenience variable
haskell-generic-builder: run haddock only if the package contains a library
haskell-generic-builder: prepend "haskell-" to Haskell library names
haskell-generic-builder: re-enable code that fixed dynamically linked executables on Darwin