From c37e1af875c9169ac7b53f71fcbb593701793a0a Mon Sep 17 00:00:00 2001 From: Tom Sydney Kerckhove Date: Mon, 10 May 2021 10:23:27 +0200 Subject: [PATCH] haskellPackages: unbreak bson and mongoDB --- .../haskell-modules/configuration-common.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 7cad4d339f461..cd2936771d483 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1898,4 +1898,19 @@ EOT }) ]; + bson = overrideCabal super.bson (drv: { + # We replace 'network' by 'network-bsd' because cabal2nix cannot correctly that pick up. + libraryHaskellDepends = with pkgs.haskellPackages; [ + base + binary + bytestring + cryptohash-md5 + data-binary-ieee754 + mtl + network-bsd # network-bsd AND NOT network + text + time + ]; + }); + } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super