[Nix-dev] npm packages broken

Luca Bruno lethalman88 at gmail.com
Sun Feb 7 14:13:20 CET 2016


Just use an older npm2nix until someone fixes it:

with import <nixpkgs> {};

(import (fetchTarball
https://github.com/NixOS/nixpkgs/archive/1357692.tar.gz) {}).npm2nix


On Sun, Feb 7, 2016 at 11:59 AM, Wout Mertens <wout.mertens at gmail.com>
wrote:

> Sadly, I always build npm packages locally with a user created for the
> app. Npm2nix is not usable yet afaik (I'd love to be wrong).
>
> Last I saw, someone was proposing for it to piggyback on `npm shrinkwrap`,
> which I think would be the way to go for determining version numbers. Worst
> case, the result could be used to pre-populate an npm cache and to run npm
> in a sandbox for building (possibly step by step so we can store all
> modules separately).
>
> On Tue, Feb 2, 2016, 8:53 PM Matthew O'Gorman <mog at rldn.net> wrote:
>
>>
>> Yesterday I tried to package phonegap for nixos but ran into problems.
>> It seems several of the packages in the node-package-generated.nix no
>> longer exist so npm2nix over node-packages.json fails.  Should this
>> feature be removed? If so how should I go about packaging npm software
>> for nix.
>>
>> --
>> Matthew O'Gorman
>> BM-NBUmia4p88Jny5bZbRGcMt64SWWp5WVv
>> TorChat: 5w3dtk7nhkkijcpc
>> Site: https://b.rldn.net
>> Xim/Email: mog at rldn.net
>> mog at rldn:~$ fortune wisdom -s|cowsay -f /dev/null
>>  ______________________________________
>> / There is no cure for birth and death \
>> | other than to enjoy the interval.    |
>> |                                      |
>> \ -- George Santayana                  /
>>  --------------------------------------
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
> --
>
> Wout.
> (typed on mobile, excuse terseness)
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>


-- 
NixOS Linux <http://nixos.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160207/42c17980/attachment.html 


More information about the nix-dev mailing list