diff --git a/pkgs/development/libraries/haskell/cabal/cabal.nix b/pkgs/development/libraries/haskell/cabal/cabal.nix index cac8990d271f..c0dea9976839 100644 --- a/pkgs/development/libraries/haskell/cabal/cabal.nix +++ b/pkgs/development/libraries/haskell/cabal/cabal.nix @@ -37,7 +37,7 @@ attrs : propagatedBuildInputs = []; # library directories that have to be added to the Cabal files - extraLibDirs = map (x : x + "/lib") self.propagatedBuildInputs; + extraLibDirs = attrs.lib.lists.concatMap (x : [ (x + "/lib64") (x + "/lib") ]) self.propagatedBuildInputs; # compiles Setup and configures configurePhase = '' diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index d9ab86a6d77d..d13141ca9322 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -16,7 +16,7 @@ rec { }; cabal = import ../development/libraries/haskell/cabal/cabal.nix { - inherit (pkgs) stdenv fetchurl; + inherit (pkgs) stdenv fetchurl lib; inherit ghc; };