diff --git a/pkgs/development/libraries/poppler/default.nix b/pkgs/development/libraries/poppler/default.nix index 1e1452f4578b..b9412b37cbad 100644 --- a/pkgs/development/libraries/poppler/default.nix +++ b/pkgs/development/libraries/poppler/default.nix @@ -66,7 +66,11 @@ let propagatedBuildInputs = [ qt4 poppler_glib ]; patches = qtcairo_patches; NIX_LDFLAGS = "-lpoppler"; - postConfigure = "cd qt4"; + postConfigure = '' + mkdir -p "$out/lib/pkgconfig" + install -c -m 644 poppler-qt4.pc "$out/lib/pkgconfig" + cd qt4 + ''; }; in { inherit poppler_glib poppler_qt4; } // poppler_glib