From bc0da0441443a39238a38b568a236e77482197e3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 15 Oct 2014 09:35:19 +0200 Subject: [PATCH] Configure vector build with -msse2 on i686 platforms to fix test suite failures. https://github.com/haskell/vector/issues/47 --- src/Cabal2Nix/PostProcess.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Cabal2Nix/PostProcess.hs b/src/Cabal2Nix/PostProcess.hs index 812b7e847..d9783642c 100644 --- a/src/Cabal2Nix/PostProcess.hs +++ b/src/Cabal2Nix/PostProcess.hs @@ -108,6 +108,7 @@ postProcess deriv@(MkDerivation {..}) = deriv { runHaddock = True, phaseOverrides = transformersNoHaddock } | pname == "tz" = deriv { extraFunctionArgs = ["pkgs_tzdata"], phaseOverrides = "preConfigure = \"export TZDIR=${pkgs_tzdata}/share/zoneinfo\";" } | pname == "vacuum" = deriv { extraLibs = "ghcPaths":extraLibs } + | pname == "vector" = deriv { configureFlags = "${self.stdenv.lib.optionalString self.stdenv.isi686 \"--ghc-options=-msse2\"}":configureFlags } | pname == "wxc" = deriv { extraLibs = "wxGTK":"mesa":"libX11":extraLibs, phaseOverrides = wxcPostInstall } | pname == "wxcore" = deriv { extraLibs = "wxGTK":"mesa":"libX11":extraLibs } | pname == "X11" && version >= Version [1,6] []