rbenv: 1.2.0 -> 1.3.0 and migrate to pkgs/by-name and format using nixfmt (#353850)

This commit is contained in:
Guillaume Girol 2024-11-16 13:01:44 +01:00 committed by GitHub
commit e3ae6ff898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = ''
@ -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 apps 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;
};
}
})