[Nix-dev] Announcing New Ruby Support

Domen Kožar domen at dev.si
Mon Jan 26 11:03:51 CET 2015


I've opened https://github.com/NixOS/nixpkgs/issues/5985 to address
documentation regarding this change.

PS: we should also migrate redmine to the new infrastructure:
https://github.com/NixOS/nixpkgs/issues/5984

On Thu, Jan 22, 2015 at 9:03 AM, Matthias Beyer <mail at beyermatthias.de>
wrote:

> Hi,
>
> On 21-01-2015 23:29:55, Charles Strahan wrote:
> >    Hello all,
> >    I'm pleased to announce that the Pleasant Ruby PR has landed on
> master.
>
> this is awesome news!
>
> >    The new
> >    feature - bundlerEnv - allows one to package Ruby applications with
> >    Bundler.
> >    To use the new system, first create (or copy over) a Gemfile
> describing
> >    the
> >    required gems.
> >    Next, create a Gemfile.lock by running `bundler package --no-install`
> in
> >    the
> >    containing directory (this also creates two folders - vendor and
> .bundle -
> >    which you'll want to delete before committing).
> >    Now, you'll need to dump the lockfile as a Nix expression. To do so,
> use
> >    Bundix
> >    in the target directory:
> >    A  $(nix-build '<nixpkgs>' -A bundix)/bin/bundix
> >    That will drop a gemset.nix file in your current directory, which
> >    describes the
> >    sources for all of the gems and their respective SHAs.
> >    Finally, you'll need to use bundlerEnv to build the gems. The
> following
> >    example
> >    is how we package the sup mail reader:
> >    [...]
>
> Is there a way to even automat these steps?
>
> Ideally (for me as user) would be to be able to
>
>     nix-env -iA pkgs.rubyGems.<insert arbitrary gem>
>
> and nix figures out everything, including dependencies and so on.
>
> I don't know whether this is possible or not, but I guess it would be
> really cool and also beneficial in manner of packaging/maintaining
> effort.
>
> Anyways, nice to hear that Ruby support gets better!
>
> --
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
>
> Proudly sent with mutt.
> Happily signed with gnupg.
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150126/fa231057/attachment.html 


More information about the nix-dev mailing list