From 175c3526aeae925ecae93002410a1fb9f255f6c0 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 26 Jul 2017 10:09:05 +0200 Subject: [PATCH] haskell: provide the name 'bin-package-db' (null) to fix evaluation errors --- pkgs/development/haskell-modules/configuration-common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index aeb09d4ad60..3a3928f5618 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -15,6 +15,12 @@ with import ./lib.nix { inherit pkgs; }; self: super: { + # This used to be a core package provided by GHC, but then the compiler + # dropped it. We define the name here to make sure that old packages which + # depend on this library still evaluate (even though they won't compile + # successfully with recent versions of the compiler). + bin-package-db = null; + # Some Hackage packages reference this attribute, which exists only in the # GHCJS package set. We provide a dummy version here to fix potential # evaluation errors.