2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2019-04-28 13:30:52 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rubygems";
|
2019-08-27 11:14:30 +01:00
|
|
|
version = "3.0.6";
|
2019-04-28 13:30:52 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
|
2019-08-27 11:14:30 +01:00
|
|
|
sha256 = "1ca1i4xmggizr59m6p28gprlvshczsbx30q8iyzxb2vj4jn8arzx";
|
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-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 ];
|
|
|
|
};
|
|
|
|
}
|