[Nix-dev] Infinite recursion with npm2nix
Shea Levy
shea at shealevy.com
Wed Apr 16 16:33:34 CEST 2014
Hi Colin,
On Wed, Apr 16, 2014 at 08:40:46AM -0500, Colin Putney wrote:
> On Tue, Apr 15, 2014 at 8:27 AM, Shea Levy <shea at shealevy.com> wrote:
>
> > Hi Colin,
> >
> > I've added pure-0.5.0-rc-1 to nixpkgs, can you try using that as a
> > dependency?
> >
>
> Hi Shea,
>
> Thanks for looking into this. Unfortunately, I don't think this approach is
> the right way to go.
>
> Pure is a CSS framework; it provides CSS files, not Javascript. It's source
> tree doesn't contain production-ready CSS; that has to be built from
> snippets of CSS in the source tree. The build is implemented using Grunt
> and a bunch of npm packages for processing CSS. My attempt at packaging
> Pure was more-or-less like a classical C-based package: download the
> source, compile, then install the resulting CSS into the store. The version
> currently in nixpkgs just installs the source code; to get useful CSS it
> needs to be built.
>
Ah, OK, sorry for the misunderstanding. I'll take a closer look at your
implementation, assuming my next suggestion doesn't fix it...
>
> I notice that nixpkgs doesn't currently include any npm packages with peer
> dependencies. Is this because of the infinite recursion? I couldn't tell if
> it's a problem inherent to the current implementation of npm2nix, or just
> an artifact of the way I'm using it.
>
Hmm, yes we do, for example
nodePackages.by-version."grunt-contrib-cssmin"."0.9.0". Are you by any
chance using the 13.10 branch of nixpkgs? It's entirely possible the
buildNodePackage there doesn't work properly with peerDependencies.
>
> Colin
More information about the nix-dev
mailing list