[Nix-dev] mozjs problem

Roelof Wobben rwobben at hotmail.com
Tue Nov 26 13:35:59 CET 2013


hello, 

When I do that and my expression looks like this :

{ stdenv, autoreconfHook, fetchurl, pkgconfig, gobjectIntrospection, glib, spidermonkey_185, cairo, dbus_glib, python}:

stdenv.mkDerivation rec {
  name = "cjs";
  version = "2.0.0" ;

  src = fetchurl {
    url = "http://github.com/linuxmint/cjs/archive/${version}.tar.gz";
    sha256 = "16iazd5h2z27v9jxs4a8imwls5c1c690wk7i05r5ds3c3r4nrsig";
  };

  buildInputs = [autoreconfHook pkgconfig gobjectIntrospection glib spidermonkey_185 cairo dbus_glib python];

  configureFlags = "--disable-static "  ;
  
  passthru = { 
      gir_path= "/share/gir-1.0"; 
      gi_typelib_path = "/lib/girepository-1.0";
  };
 
  
  meta = { 
    homepage = "http://cinnamon.linuxmint.org";
    description = "This module contains JavaScript bindings based on 
gobject-introspection" ; 
    
   longDescription = ''
      This module contains JavaScript bindings based on gobject-introspection.

      Because JavaScript is pretty free-form, consistent coding style and unit tests
      are critical to give it some structure and keep it readable.
      We propose that all GNOME usage of JavaScript conform to the style guide
      in doc/Style_Guide.txt to help keep things sane.
    '';

    platforms = stdenv.lib.platforms.linux;
};
}

Then I see these errrors :

make[1]: Entering directory `/tmp/nix-build-cjs.drv-0/cjs-2.0.0'
building console_la-console.lo
  CC       console_la-console.lo
building libcjs_la-byteArray.lo
  CC       libcjs_la-byteArray.lo
cjs/byteArray.c: In function 'gjs_byte_array_constructor':
cjs/byteArray.c:467:5: warning: passing argument 1 of 'JS_GetClass' from incompatible pointer type [enabled by default]
/nix/store/shccnsykqkyiampwica54srm942g70kf-spidermonkey-185-1.0.0/include/js/jsapi.h:2122:1: note: expected 'struct JSObject *' but argument is of type 'struct JSContext *'
cjs/byteArray.c:467:5: error: too many arguments to function 'JS_GetClass'
/nix/store/shccnsykqkyiampwica54srm942g70kf-spidermonkey-185-1.0.0/include/js/jsapi.h:2122:1: note: declared here
cjs/byteArray.c:468:5: warning: passing argument 1 of 'JS_GetClass' from incompatible pointer type [enabled by default]
/nix/store/shccnsykqkyiampwica54srm942g70kf-spidermonkey-185-1.0.0/include/js/jsapi.h:2122:1: note: expected 'struct JSObject *' but argument is of type 'struct JSContext *'
cjs/byteArray.c:468:5: error: too many arguments to function 'JS_GetClass'
/nix/store/shccnsykqkyiampwica54srm942g70kf-spidermonkey-185-1.0.0/include/js/jsapi.h:2122:1: note: declared here
make[1]: *** [libcjs_la-byteArray.lo] Error 1
make[1]: Leaving directory `/tmp/nix-build-cjs.drv-0/cjs-2.0.0'
make: *** [all] Error 2
builder for `/nix/store/bnhwka2kzxr4kn44kxiqp7gza9kl3zan-cjs.drv' failed with exit code 2
error: build of `/nix/store/bnhwka2kzxr4kn44kxiqp7gza9kl3zan-cjs.drv' failed



I looked at Arch but it seems to use the same error and they do not have this problem.

Roelof



> Date: Tue, 26 Nov 2013 11:43:04 +0100
> From: eelco.dolstra at logicblox.com
> To: nix-dev at lists.science.uu.nl
> Subject: Re: [Nix-dev] mozjs problem
> 
> Hi,
> 
> On 26/11/13 07:19, Roelof Wobben wrote:
> 
> > pkgconfig and spidermonkey are both added to buildsInput.
> 
> Try:
> 
>   buildInputs = [ pkgconfig spidermonkey_185 ];
> 
> > I think the problem is that cjs is looking for a package named mozjs185 or js185
> > and on NixOs the name is spidermonkey. 
> 
> The problem is that the names/versions of the spidermonkey packages in Nixpkgs
> seem messed up.
> 
> -- 
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20131126/ac40fa2c/attachment.html 


More information about the nix-dev mailing list