2021-07-16 04:20:00 +00:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2019-04-28 12:30:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-28 21:26:34 +00:00
|
|
|
pname = "rubygems";
|
2021-08-30 11:58:39 +00:00
|
|
|
version = "3.2.26";
|
2019-04-28 12:30:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
|
2021-08-30 11:58:39 +00:00
|
|
|
sha256 = "sha256-9wa6lOWnua8zBblQKRgjjiTVPYp2TW0n7XOvgW7u1e8=";
|
2019-04-28 12:30:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2019-04-28 16:36:16 +00:00
|
|
|
./0001-add-post-extract-hook.patch
|
|
|
|
./0002-binaries-with-env-shebang.patch
|
|
|
|
./0003-gem-install-default-to-user.patch
|
2019-04-28 12:30:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
cp -r . $out
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Package management framework for Ruby";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://rubygems.org/";
|
2019-04-28 12:30:52 +00:00
|
|
|
license = with licenses; [ mit /* or */ ruby ];
|
2021-03-31 09:27:35 +00:00
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
2019-04-28 12:30:52 +00:00
|
|
|
};
|
|
|
|
}
|