summary refs log tree commit diff
path: root/pkgs/development/compilers/uhc
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-10-26 18:33:09 +0200
committerPeter Simons <simons@cryp.to>2013-10-27 10:09:36 +0100
commitd64917ad17277b8e16893ee31533ec2e33446fa7 (patch)
tree5f43890f54aba657e63e7a8d3896aefd25c6347f /pkgs/development/compilers/uhc
parent5580abd60a4b7f0ee7d4354ceb5a7281dd6ab305 (diff)
downloadnixpkgs-d64917ad17277b8e16893ee31533ec2e33446fa7.tar
nixpkgs-d64917ad17277b8e16893ee31533ec2e33446fa7.tar.gz
nixpkgs-d64917ad17277b8e16893ee31533ec2e33446fa7.tar.bz2
nixpkgs-d64917ad17277b8e16893ee31533ec2e33446fa7.tar.lz
nixpkgs-d64917ad17277b8e16893ee31533ec2e33446fa7.tar.xz
nixpkgs-d64917ad17277b8e16893ee31533ec2e33446fa7.tar.zst
nixpkgs-d64917ad17277b8e16893ee31533ec2e33446fa7.zip
Back-port Haskell-related improvements from stdenv-updates.
 * There now is full support for building Haskell packages as shared libraries
   for GHC versions 7.4.2 or later. The Cabal builder recognizes the following
   attributes:

    - enableSharedLibraries configures Cabal to build of shared libraries in
      addition to static ones. This option requires that all dependencies of
      the package have been compiled for use in shared libraries, too.

    - enableSharedExecutables configures Cabal to prefer shared libraries when
      linking executables.

   The default values for these attributes are arguments to the haskellPackages
   expression.

 * Haskell builds now run in a LANG="en_US.UTF-8" environment to avoid plenty
   of build and test suite errors. Without this setting, GHC seems unable to
   deal with the UTF-8 character encoding that's generally considered standard
   in the Haskell world.

 * The Cabal builder supports a new attribute 'testTarget' to specify the exact
   set of tests to be run during the check phase.

 * The ghc-wrapper attribute ghcVersion has been removed. Instead, we use the
   ghc.version attribute, which exists in unwrapped GHC derivations, too.
Diffstat (limited to 'pkgs/development/compilers/uhc')
-rw-r--r--pkgs/development/compilers/uhc/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/uhc/default.nix b/pkgs/development/compilers/uhc/default.nix
index fa66306721d..31f45086ba0 100644
--- a/pkgs/development/compilers/uhc/default.nix
+++ b/pkgs/development/compilers/uhc/default.nix
@@ -4,7 +4,7 @@
 
 # this check won't be needed anymore after ghc-wrapper is fixed
 # to show ghc-builtin packages in "ghc-pkg list" output.
-let binaryIsBuiltIn = builtins.compareVersions "7.2.1" ghc.ghcVersion != 1;
+let binaryIsBuiltIn = builtins.compareVersions "7.2.1" ghc.version != 1;
 
 in stdenv.mkDerivation {
   name = "uhc-svn-git20120502";