Files
nixpkgs/pkgs/by-name/rb/rbenv/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rbenv";
version = "1.3.2";
nativeBuildInputs = [ installShellFiles ];
src = fetchFromGitHub {
owner = "rbenv";
repo = "rbenv";
rev = "v${finalAttrs.version}";
sha256 = "sha256-vkwYl+cV5laDfevAHfju5G+STA3Y+wcMBtW1NWzJ4po=";
};
postPatch = ''
patchShebangs src/configure
pushd src
'';
installPhase = ''
popd
mkdir -p $out/bin
mv libexec $out
ln -s $out/libexec/rbenv $out/bin/rbenv
installShellCompletion --zsh completions/_rbenv
installShellCompletion --bash completions/rbenv.bash
'';
meta = {
description = "Version manager tool for the Ruby programming language on Unix-like systems";
longDescription = ''
Use rbenv to pick a Ruby version for your application and guarantee that your development environment matches production.
Put rbenv to work with Bundler for painless Ruby upgrades and bulletproof deployments.
'';
homepage = "https://github.com/rbenv/rbenv";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fzakaria ];
mainProgram = "rbenv";
platforms = lib.platforms.all;
};
})