[Nix-dev] Announcing New Ruby Support
Matthias Beyer
mail at beyermatthias.de
Thu Jan 22 09:03:31 CET 2015
Hi,
On 21-01-2015 23:29:55, Charles Strahan wrote:
> Hello all,
> I'm pleased to announce that the Pleasant Ruby PR has landed on master.
this is awesome news!
> The new
> feature - bundlerEnv - allows one to package Ruby applications with
> Bundler.
> To use the new system, first create (or copy over) a Gemfile describing
> the
> required gems.
> Next, create a Gemfile.lock by running `bundler package --no-install` in
> the
> containing directory (this also creates two folders - vendor and .bundle -
> which you'll want to delete before committing).
> Now, you'll need to dump the lockfile as a Nix expression. To do so, use
> Bundix
> in the target directory:
> A $(nix-build '<nixpkgs>' -A bundix)/bin/bundix
> That will drop a gemset.nix file in your current directory, which
> describes the
> sources for all of the gems and their respective SHAs.
> Finally, you'll need to use bundlerEnv to build the gems. The following
> example
> is how we package the sup mail reader:
> [...]
Is there a way to even automat these steps?
Ideally (for me as user) would be to be able to
nix-env -iA pkgs.rubyGems.<insert arbitrary gem>
and nix figures out everything, including dependencies and so on.
I don't know whether this is possible or not, but I guess it would be
really cool and also beneficial in manner of packaging/maintaining
effort.
Anyways, nice to hear that Ruby support gets better!
--
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer
Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150122/f69e320d/attachment.bin
More information about the nix-dev
mailing list