From cf2fbb3502264bcf19ac53939f7fc401d79327d8 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 3 Dec 2013 22:03:51 +0100 Subject: [PATCH] haskell-packages.nix: enable dynamic linking in GHC 7.7 or later The current snapshot requires shared libraries to be built (otherwise some packages won't build). I'm sure that's a mistake in the way it's configured that should be fixed. Anyway, enabling shared library support is an easy way out (and an interesting experiment). --- pkgs/top-level/haskell-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 8698392c6891..6b7044d87296 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -60,8 +60,8 @@ { pkgs, newScope, ghc, prefFun, modifyPrio ? (x : x) , enableLibraryProfiling ? false -, enableSharedLibraries ? false -, enableSharedExecutables ? false +, enableSharedLibraries ? pkgs.stdenv.lib.versionOlder "7.7" ghc.version +, enableSharedExecutables ? pkgs.stdenv.lib.versionOlder "7.7" ghc.version , enableCheckPhase ? pkgs.stdenv.lib.versionOlder "7.4" ghc.version }: