[Nix-dev] mozjs problem

Marc Weber marco-oweber at gmx.de
Tue Nov 26 03:07:25 CET 2013


Add pkgconfig, man pkgconfig tells you about PKG_CONFIG_PATH variable.
nix-build -A pkgconfig -> nix-support/setup-hook

adds env hooks which get run by the standard builder:

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

      envHooks=(${envHooks[@]} addPkgConfigPath)

Thus adding pkgconfig to buildInputs should be enough.

The standard builder script is worth looking at and remembering:

  ./pkgs/stdenv/generic/setup.sh

Marc Weber


More information about the nix-dev mailing list