pkgconfig and spidermonkey are both added to buildsInput. I think the problem is that cjs is looking for a package named mozjs185 or js185 and on NixOs the name is spidermonkey.
So i think I have to add flags so I can tell where to look. Roelof ---------------------------------------- > From: [email protected] > To: [email protected] > Date: Tue, 26 Nov 2013 03:07:25 +0100 > Subject: Re: [Nix-dev] mozjs problem > > 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 > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev > _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
