[Nix-dev] Some hints for Perl -> C++ translation?

Mateusz Czaplinski czapkofan at gmail.com
Wed Jan 6 12:59:49 CET 2016


On Mon, Jan 4, 2016 at 9:22 AM, Vladimír Čunát <vcunat at gmail.com> wrote:

> >   - how I might try to setup a dev environment for that, ideally in
> NixOS?
> I think ./dev-shell is meant exactly for that.
>

Thanks!
So, I should expect something like below to work in "pristine NixOS with
Internet connectivity", yes?

    $ ./dev-shell     # runs bash in the new env, I assume
    $ ./configure && make && make check
    $ ./bin/nix-env --this-and-that-or-else


> >   - where in the codebase can I find some "main entry point" to "core
> > nix functionalities"?
>
> I'd think that's not a good approach to take. What's written in perl are
> mainly facade-like wrappers and utilities.
>
> >   - what would you suggest I start translating first? (which .pm files)
> > I'm open to all suggestions, including "hard but very useful" ones, as
> > well as "easy but close to useless".
>
> *.pm seem for usage by perl stuff (per/lib/Nix/*.pm), so it should be
> possible to completely ignore those. I suppose you know this overview
> list https://github.com/NixOS/nix/issues/341#issuecomment-58743265
>
> I think the most called ones are download-from-binary-cache.pl.in,
> nix-build, and buildenv.pl. Maybe best start with some script that you
> (think) you understand best. From portability perspective, most of them
> will need to get ported to achieve the goal.
>

Ok, thanks for all the hints and information. Nice overview, gives me some
much needed perspective.

Thanks,
/Mateusz.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160106/877bb33f/attachment.html 


More information about the nix-dev mailing list