Ninja cant find pkg-config but its in the shell

Im trying to build ladybird in a shell but after running ./Meta/ladybird.py build it eventually throws the error

CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: /nix/store/nrq9nb3zpnc70wjqwkkf3bq9g261l4ak-ninja-1.13.1/bin/ninja -v
    Working Directory: ~/Documents/code/other/ladybird/Build/vcpkg/buildtrees/curl/x64-linux-dynamic-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      ~/Documents/code/other/ladybird/Build/vcpkg/buildtrees/curl/config-x64-linux-dynamic-rel-CMakeCache.txt.log
      ~/Documents/code/other/ladybird/Build/vcpkg/buildtrees/curl/config-x64-linux-dynamic-rel-CMakeConfigureLog.yaml.log
      ~/Documents/code/other/ladybird/Build/vcpkg/buildtrees/curl/config-x64-linux-dynamic-out.log

when i try running ninja -v in the working directory it gives this error

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
CMake Error at /nix/store/0vnarm4qjnj16dr3zj9kwq6bn79c0icn-cmake-3.31.7/share/cmake-3.31/Modules/FindPkgConfig.cmake:707 (message):
  pkg-config tool not found
Call Stack (most recent call first):
  /nix/store/0vnarm4qjnj16dr3zj9kwq6bn79c0icn-cmake-3.31.7/share/cmake-3.31/Modules/FindPkgConfig.cmake:873 (_pkg_check_modules_internal)
  CMakeLists.txt:2291 (pkg_check_modules)

this is my shell

{
  mkShell,
  cmake,
  ninja,
  pkg-config,
  python3,
  qt6Packages,
  libtommath,
  curl,
  ffmpeg,
  fontconfig,
  libavif,
  libGL,
  libjxl,
  libwebp,
  libxcrypt,
  openssl,
  gnutar,
  zip,
  unzip,
  clang-tools,
  lib,
  pkgconf
}:

mkShell {
  packages = [
    clang-tools
    cmake
    ninja
    pkg-config
    python3
    #qt6Packages.wrapQtAppsHook
    libtommath
    curl
    ffmpeg
    fontconfig
    libavif
    libGL
    libjxl
    libwebp
    libxcrypt
    openssl
    gnutar
    zip
    unzip
    pkgconf
  ];
  
  shellHook = "zsh";
}