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"; pname = "rbenv";
version = "1.2.0"; version = "1.3.0";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rbenv"; owner = "rbenv";
repo = "rbenv"; repo = "rbenv";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "sha256-m/Yy5EK8pLTBFcsgKCrNvQrPFFIlYklXXZbjN4Nmm9c="; sha256 = "sha256-AO0z9QtCGHwUr2ji28sbvQmCBDIfjAqbiac+HTH3N7Q=";
}; };
postPatch = '' postPatch = ''
patchShebangs src/configure patchShebangs src/configure
pushd src pushd src
''; '';
installPhase = '' installPhase = ''
@ -24,19 +29,20 @@ stdenv.mkDerivation rec {
mv libexec $out mv libexec $out
ln -s $out/libexec/rbenv $out/bin/rbenv 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; { meta = {
description = "Groom your apps Ruby environment"; description = "Version manager tool for the Ruby programming language on Unix-like systems";
mainProgram = "rbenv";
longDescription = '' longDescription = ''
Use rbenv to pick a Ruby version for your application and guarantee that your development environment matches production. 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. Put rbenv to work with Bundler for painless Ruby upgrades and bulletproof deployments.
''; '';
homepage = "https://github.com/rbenv/rbenv"; homepage = "https://github.com/rbenv/rbenv";
license = licenses.mit; license = lib.licenses.mit;
maintainers = with maintainers; [ fzakaria ]; maintainers = with lib.maintainers; [ fzakaria ];
platforms = platforms.all; mainProgram = "rbenv";
platforms = lib.platforms.all;
}; };
} })