@@ -1,4 +1,4 @@
1−{ stdenv, buildPackages, ghc, lib, pkgconfig, gobject-introspection ? null, haskellLib, makeConfigFiles, ghcForComponent, hsPkgs, runCommand, libffi, gmp }:
1+{ stdenv, buildPackages, ghc, lib, gobject-introspection ? null, haskellLib, makeConfigFiles, ghcForComponent, hsPkgs, runCommand, libffi, gmp }:
22
33{ componentId
44, component
@@ -121,7 +121,7 @@ let
121121 (lib.concatMap (c: if c.isHaskell or false
122122 then builtins.attrValues (c.components.exes or {})
123123 else [c]) component.build-tools) ++
124− lib.optional (component.pkgconfig != []) pkgconfig;
124+ lib.optional (component.pkgconfig != []) buildPackages.pkgconfig;
125125
126126 # Unfortunately, we need to wrap ghc commands for cabal builds to
127127 # work in the nix-shell. See ../doc/removing-with-package-wrapper.md.