Thanks Vlad! I added the following attribute in the `top-level/all-packages.nix` file, right below the `ruby` attribute.
rubyCurses = ruby.override { cursesSupport = true; }; Then I reinstalled Ruby and found success. Nice! $ nix-env --uninstall ruby $ nix-env --uninstall rubygems $ nix-env --install -A rubyCurses -f /my-sources/pkgs/top-level/all-packages.nix $ sudo nix-env --install -A heroku-toolbelt -f /my-sources/pkgs/top-level/all-packages.nix $ heroku # <Heroku command list - Success!> Two final questions: 1) Why is "cursesSupport" disabled by default? Does it not work on most systems? If a relatively popular package like Heroku requires "readlike", which requires "curses", I believe Ruby should have this functionality out-of-the-box. 2) I will rename this package from "heroku-toolbelt" to just "heroku", because it doesn't include foreman or anything else. Can I make a "wrapper package" called "heroku-toolbelt", which installs "heroku", "foreman" and "git"? On Tue, Nov 19, 2013 at 2:33 AM, Vladimír Čunát <vcu...@gmail.com> wrote: > On 11/18/2013 12:17 PM, Jonas Pfenniger (zimbatm) wrote: > >> Regarding readline, it seems that it's only compiled if a cursesSupport >> flag is enabled : >> https://github.com/NixOS/nixpkgs/blob/master/pkgs/ >> development/interpreters/ruby/ruby-19.nix#L5 >> but I don't know how to compile ruby with it or not >> > > That can be done via a simple override: > > rubyCurses = ruby.override { cursesSupport = true; }; > > > Vlada > > >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev