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
