[Nix-dev] mozjs problem

Roelof Wobben rwobben at hotmail.com
Tue Nov 26 07:19:45 CET 2013


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: marco-oweber at gmx.de
> To: nix-dev at lists.science.uu.nl
> 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
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev 		 	   		  


More information about the nix-dev mailing list