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.fors...@gmail.com> wrote:

> Hi Alex,
>
> On 30 November 2013 07:03, Alex Berg <chex...@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
>
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to