Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
fetchurl,
gitUpdater,
lib,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "rubygems";
version = "3.7.1";
src = fetchurl {
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
hash = "sha256-dQyMdxGA1B7SNYNE5UYe3ugxWMCoG3eZaaEzmWG8EWM=";
};
patches = [
./0001-add-post-extract-hook.patch
./0002-binaries-with-env-shebang.patch
./0003-gem-install-default-to-user.patch
];
installPhase = ''
runHook preInstall
cp -r . $out
runHook postInstall
'';
passthru.updateScript = gitUpdater {
url = "https://github.com/rubygems/rubygems.git";
rev-prefix = "v";
ignoredVersions = "(pre|alpha|beta|rc|bundler).*";
};
meta = with lib; {
description = "Package management framework for Ruby";
changelog = "https://github.com/rubygems/rubygems/blob/v${version}/CHANGELOG.md";
homepage = "https://rubygems.org/";
license = with licenses; [
mit # or
ruby
];
mainProgram = "gem";
maintainers = with maintainers; [ zimbatm ];
};
}