[Nix-dev] How to use Generated Rubygems Nix Packages?
Bjørn Forsman
bjorn.forsman at gmail.com
Sat Nov 30 10:34:41 CET 2013
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
More information about the nix-dev
mailing list