c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
31 lines
809 B
Nix
31 lines
809 B
Nix
{ stdenv, lib, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rubygems";
|
|
version = "3.4.18";
|
|
|
|
src = fetchurl {
|
|
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
|
|
hash = "sha256-+yHTJWedZNCkkRMIRT103QMTFJODlbJ2PwVbTghEo0M=";
|
|
};
|
|
|
|
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 ];
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
};
|
|
}
|