2019-12-29 18:15:49 +00:00
|
|
|
{ stdenv, lib, fetchurl, fetchpatch }:
|
2019-04-28 13:30:52 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rubygems";
|
2019-12-20 09:20:00 +00:00
|
|
|
version = "3.1.2";
|
2019-04-28 13:30:52 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
|
2019-12-20 09:20:00 +00:00
|
|
|
sha256 = "0h7ij4jpj8rgnpkl63cwh2lnav73pw5wpfqra3va7077lsyadlgd";
|
2019-04-28 13:30:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2019-04-28 17:36:16 +01:00
|
|
|
./0001-add-post-extract-hook.patch
|
|
|
|
./0002-binaries-with-env-shebang.patch
|
|
|
|
./0003-gem-install-default-to-user.patch
|
2019-12-29 18:15:49 +00:00
|
|
|
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/rubygems/rubygems/commit/0af4d2d369ff580ef54839ec15a8c7ec419978cb.patch";
|
|
|
|
sha256 = "13gyfxn4rmxq1dbxq5rzphnhagn8n8kpp8lb9h6h4s9d4zaklax9";
|
|
|
|
})
|
2019-04-28 13:30:52 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
cp -r . $out
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Package management framework for Ruby";
|
|
|
|
homepage = https://rubygems.org/;
|
|
|
|
license = with licenses; [ mit /* or */ ruby ];
|
|
|
|
maintainers = with maintainers; [ qyliss zimbatm ];
|
|
|
|
};
|
|
|
|
}
|