I'm working on this today to narrow down where the issue lies, so I want to
poll  other's progress on this. I believe it's related to propagated
build-inputs.

I am trying to use purescript, grunt, and bower. All are working fine, but
bower is not. The error message is pasted below.

What's the status of recursive dependency resolution for NPM packages? I
remember seeing lots of work on it in the last 1-2 months.

Looks like the "d" library can't find the "es5-ext/object/assign" library.
I believe the latter is a part of the standard library, which I believe
should be part of the base node package.


---------- shell.nix ------------

{ }:

with import <nixpkgs> {};

let haskellPackages = pkgs.haskellPackages.override {
        extension = self: super: {
                # purescript = self.callPackage ./purescript.nix {};
        };
};
nodePkgs = pkgs.nodePackages;
in rec {
        pursEnv = stdenv.mkDerivation rec {
                name = "purescript-env";
                version = "1.1.1.1";
                src = ./.;
                buildInputs = [
                        haskellPackages.purescript
                        nodePkgs.bower
                        nodePkgs.grunt-cli
                        git
                ];
        };
}


--------- NODE_PATH -----------

[nix-shell:~/dev/purescript-test]$ echo $NODE_PATH
/nix/store/95k5x06vfspkfi2sw43nsjydffqsdahz-bin-bower-1.3.12/lib/node_modules:/nix/store/l56ffyyz233bi8njxp3cyn9qgpd1pwqj-nodejs-0.10.32/lib/node_modules:/nix/store/smrcylf038p9z8r3fs8rwarv9dg
iahcy-bin-grunt-cli-0.1.13/lib/node_modules


------------- Error paste --------------

[nix-shell:~/dev/purescript-test]$ bower

module.js:340
    throw err;
          ^
Error: Cannot find module 'es5-ext/object/assign'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous>
(/nix/store/izf6avvrfmix793z3mwhwdb77bx3j8z7-node-d-0.1.1/lib/node_modules/d/index.js:3:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to