nixpkgs/pkgs/development/tools/misc/pkg-config/setup-hook.sh
zimbatm abac6afe93
pkgconfig: rename to pkg-config (#55094)
Package attrs should map to the pname. It's confusing otherwise.

pkg-config is also the name used by most distributions:

Debian, Homebrew, Guix, OpenSuse

other distributions like FreeBSD ports, Fedora and Arch Linux call it
"pkgconf"

Waiting a few releases to make a tree-wide change to make it easier to
back-port things.
2019-02-03 15:35:55 +00:00

6 lines
178 B
Bash

addPkgConfigPath () {
addToSearchPath PKG_CONFIG_PATH $1/lib/pkgconfig
addToSearchPath PKG_CONFIG_PATH $1/share/pkgconfig
}
addEnvHooks "$targetOffset" addPkgConfigPath