On 06/21/2014 09:32 AM, Wout Mertens wrote:
> So nobody is doing ruby any more?
>
> I tried installing bundler but it failed because it needs some sort of
> override to the shebang. When I add the override it installs but nixpkgs
> doesn't evaluate any more because of rake missing :-(.
>
> Now, it seems to me that already a bunch of work has been done to automate
> the gem nixification but I couldn't figure it out. If that is being
> abandoned it would be nice to have some more information on the wiki so
> others can take over.
>
> https://nixos.org/wiki/Ruby is extremely sparse and the overlay is not
> explained https://nixos.org/wiki/Nixpkgs-ruby-overlay although I did just
> find https://github.com/MarcWeber/nixpkgs/compare/experimental;overlays
> which when you look at the files changed is pretty minimal; why is it not
> in nixpkgs?
>
> Wout.
> On Jun 18, 2014 8:41 AM, "Georges Dubus" <[email protected]> wrote:
>
>> I've had a really hard time with nokogiri, because it tries to find all
>> the headers and libs by itself, and is of course unable to search in the
>> place where Nix put them.
>>
>> I finally solved that problem by building a chrootenv with the deps and
>> building nokogiri there.
>>
>> It's frustrating, because the goal of bundler is very close to what we do
>> in NixOS, but the implementation is absolutely hostile to Nix.
>>
>> Georges Dubus
>>
>>
>> 2014-06-16 19:32 GMT+02:00 Wout Mertens <[email protected]>:
>>
>>> I took a look at the sparse documentation on the Wiki, and couldn't
>>> figure out the Ruby overlay thing.
>>>
>>> I want to run a Ruby application which comes with a Gemfile and I
>>> resorted to starting a *nix-shell -p ruby -p rubyLibs.bundler* under
>>> which I do *bundle install --path=$PWD*.
>>>
>>> This more or less works, but it fails for the nokogiri gem. It needs
>>> libiconv. I tried adding that to the nix-shell invocation but it still
>>> can't find it.
>>>
>>> So, what is the best way to proceed? The packages overlay sounds great,
>>> and the discussion hinting towards a Gemfile-to-nix-environment tool too.
>>>
>>> Wout.
>>>
>>> _______________________________________________
>>> nix-dev mailing list
>>> [email protected]
>>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>>
>>>
>>
>
>
>
> _______________________________________________
> nix-dev mailing list
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
Did you manage to figure anything out? There's a Ruby program that I'd
like to package and use but I have no idea where to even start: I'm
definitely not a Ruby user! Here's what the gemspec file shows in case
it's relevant:
s.required_ruby_version = ">=1.9.3"
s.add_runtime_dependency("gtk2", "~> 2.2.0")
s.add_runtime_dependency("httpclient", ">=2.2.6")
s.add_runtime_dependency("json")
s.add_runtime_dependency("nokogiri", ">=1.4.0")
s.add_runtime_dependency("nori", "~> 2.4.0")
s.requirements << 'unzip and unrar packages for archive extracting.'
--
Mateusz K.
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev