Looks like I just needed to add `pkg-config` as an input. Oh well, at least it was a simple solution.