[Nix-dev] How to use Generated Rubygems Nix Packages?

Alex Berg chexxor at gmail.com
Sat Nov 30 13:41:45 CET 2013


Wow, awesome answer! I never understood what the -P option claimed to do,
so I never tried it. It's super-useful! Thanks for teaching it!

I used that attribute in my "buildInputs", and my app seems to have that
Gem available in its "nix-shell".

Super awesome - thanks Bjorne!
On Nov 30, 2013 5:34 PM, "Bjørn Forsman" <bjorn.forsman at gmail.com> wrote:

> Hi Alex,
>
> On 30 November 2013 07:03, Alex Berg <chexxor at gmail.com> wrote:
> > I'm looking at the "ruby/generated.nix" file:
> >
> https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/ruby/generated.nix
> >
> > Does anyone know how to add these Gems as a package's dependencies? I
> can't
> > find any documentation or examples.
> >
> > I read the code and I tried many different attributes, but I can't figure
> > out how to add these Nix expressions to add Gems as buildInputs to my
> app's
> > Nix expression. I tried "pkgs.gems.bundler" and a few other attribute
> paths,
> > but nothing works.
>
> Here is one way to find the attribute (the only way I know apart from
> reading and fully understanding all the related expressions):
>
> $ nix-env -qaP | grep bundler
> nixos.pkgs.rubyLibs.bundler
>         ruby-bundler-1.3.5
>
> So "rubyLibs.bundler" is the attribute you're looking for.
>
> Best regards,
> Bjørn Forsman
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20131130/3dbf292d/attachment.html 


More information about the nix-dev mailing list