1 { lib, stdenv, fetchFromGitHub, bash, installShellFiles }:
3 stdenv.mkDerivation rec {
7 nativeBuildInputs = [ installShellFiles ];
9 src = fetchFromGitHub {
13 sha256 = "sha256-m/Yy5EK8pLTBFcsgKCrNvQrPFFIlYklXXZbjN4Nmm9c=";
17 patchShebangs src/configure
25 ln -s $out/libexec/rbenv $out/bin/rbenv
27 installShellCompletion completions/rbenv.{bash,zsh}
31 description = "Groom your app’s Ruby environment";
33 Use rbenv to pick a Ruby version for your application and guarantee that your development environment matches production.
34 Put rbenv to work with Bundler for painless Ruby upgrades and bulletproof deployments.
36 homepage = "https://github.com/rbenv/rbenv";
37 license = licenses.mit;
38 maintainers = with maintainers; [ fzakaria ];
39 platforms = platforms.all;