diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index cc24b84c8ea4..ce2c3143bb67 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2944,7 +2944,7 @@ with haskellLib; substituteInPlace pdftotext.cabal --replace-quiet BSD3 BSD-3-Clause '' + (drv.postPatch or ""); - }) (addExtraLibrary pkgs.pkg-config (addExtraLibrary pkgs.poppler super.pdftotext)); + }) (super.pdftotext.override { poppler-cpp = pkgs.poppler; }); # QuickCheck <2.15 # https://github.com/google/proto-lens/issues/403