Re: [Nix-dev] Build a default.nix for a project with node.js and python dependencies

2016-09-07 Thread Sergiu Ivanov
Thus quoth zimbatm at 11:32 on Mi, Sep 07 2016: > > And I think there are some for Perl/CPAN, Ocaml/??? and .NET/Nuget too. OCaml's package manager is OPAM [0]. > It would be nice if we could come up with a universal XXX2nix that has a > unified interface, but then it's probably a lot of work

Re: [Nix-dev] Build a default.nix for a project with node.js and python dependencies

2016-09-07 Thread zimbatm
I don't think there is an official list. Here is the ones I know of: Go/GOPATH: go2nix Ruby/Rubygems: bundix Java/Maven: mvn2nix-maven-plugin Node/npm: npm2nix (multiple implementations) Haskell/Cabal: cabal2nix And I think there are some for Perl/CPAN, Ocaml/??? and .NET/Nuget too. The manual is

Re: [Nix-dev] Build a default.nix for a project with node.js and python dependencies

2016-09-07 Thread Roger Qiu
Is there a list of projects that go from other package managers to nix? On 06/09/2016 11:57 AM, "Rok Garbas" wrote: > to generate nix expressions from pip's requirements.txt file i created > pypi2nix[1] which should get you very close. > > [1] https://github.com/garbas/pypi2nix > > On Mon, Sep 5,

Re: [Nix-dev] Build a default.nix for a project with node.js and python dependencies

2016-09-06 Thread Johannes Bornhold
Hi Dmitry, > On 05 Sep 2016, at 19:22, Dmitry Malikov wrote: > What I'm looking for is a single default.nix file built basing on > dependencies listed in 'requirements.txt' and 'package.json' files, allowing > to do these steps via 'nix-shell' command. Not quite sure if I understood your case

Re: [Nix-dev] Build a default.nix for a project with node.js and python dependencies

2016-09-05 Thread Rok Garbas
to generate nix expressions from pip's requirements.txt file i created pypi2nix[1] which should get you very close. [1] https://github.com/garbas/pypi2nix On Mon, Sep 5, 2016 at 11:25 PM, Sander van der Burg wrote: > A bit difficult to give a very concrete answer, since there are many ways to >

Re: [Nix-dev] Build a default.nix for a project with node.js and python dependencies

2016-09-05 Thread Sander van der Burg
A bit difficult to give a very concrete answer, since there are many ways to create hybrid packages. Anyway, a possible strategy is to create a derivation/package that runs pip and keeps the resulting output source tree. Then use node2nix to generate Nix expressions from package.json file that is

[Nix-dev] Build a default.nix for a project with node.js and python dependencies

2016-09-05 Thread Dmitry Malikov
Hey guys, There is a project with node.js and python dependencies which is need to be run inside an isolated environment. Right now the whole flow consists of 3 steps: - pip install -r requirements.txt --upgrade - npm install - npm run build What I'm looking for is a single default.nix