Skip to content

Commit

Permalink
rbenv: 1.2.0 -> 1.3.0 and migrate to pkgs/by-name and format using ni…
Browse files Browse the repository at this point in the history
…xfmt (#353850)
  • Loading branch information
symphorien authored Nov 16, 2024
2 parents 8bb2a40 + 3a44a90 commit e3ae6ff
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions pkgs/by-name/rb/rbenv/package.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
{ lib, stdenv, fetchFromGitHub, installShellFiles }:
{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "rbenv";
version = "1.2.0";
version = "1.3.0";

nativeBuildInputs = [ installShellFiles ];

src = fetchFromGitHub {
owner = "rbenv";
repo = "rbenv";
rev = "v${version}";
sha256 = "sha256-m/Yy5EK8pLTBFcsgKCrNvQrPFFIlYklXXZbjN4Nmm9c=";
rev = "v${finalAttrs.version}";
sha256 = "sha256-AO0z9QtCGHwUr2ji28sbvQmCBDIfjAqbiac+HTH3N7Q=";
};

postPatch = ''
patchShebangs src/configure
pushd src
patchShebangs src/configure
pushd src
'';

installPhase = ''
Expand All @@ -24,19 +29,20 @@ stdenv.mkDerivation rec {
mv libexec $out
ln -s $out/libexec/rbenv $out/bin/rbenv
installShellCompletion completions/rbenv.{bash,zsh}
installShellCompletion --zsh completions/_rbenv
installShellCompletion --bash completions/rbenv.bash
'';

meta = with lib; {
description = "Groom your app’s Ruby environment";
mainProgram = "rbenv";
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 = licenses.mit;
maintainers = with maintainers; [ fzakaria ];
platforms = platforms.all;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fzakaria ];
mainProgram = "rbenv";
platforms = lib.platforms.all;
};
}
})

0 comments on commit e3ae6ff

Please sign in to comment.