depot/third_party/nixpkgs/pkgs/development/interpreters/ruby/rubygems/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
834 B
Nix

{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
pname = "rubygems";
version = "3.5.11";
src = fetchurl {
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
hash = "sha256-RSG1L4Q2IKn8XKdBRSa3RjsJiVZMOugLJraPvRMEyBg=";
};
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
'';
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 ];
};
}