2021-07-17 21:14:59 +00:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "rubygems";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "3.4.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
|
2023-03-27 19:17:25 +00:00
|
|
|
sha256 = "sha256-0FlDZJNJJGVkvBmKWNBqNRaTto6ciCOuQEK6uq6dotQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2023-03-27 19:17:25 +00:00
|
|
|
changelog = "https://github.com/rubygems/rubygems/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://rubygems.org/";
|
|
|
|
license = with licenses; [ mit /* or */ ruby ];
|
2021-04-05 15:23:46 +00:00
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|