b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
30 lines
725 B
Nix
30 lines
725 B
Nix
{ stdenv, lib, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rubygems";
|
|
version = "3.3.20";
|
|
|
|
src = fetchurl {
|
|
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
|
|
sha256 = "sha256-VTUMZ2mqbszM7uXOYV6Grg7dkeGAGVXYjBX0hA/vOTg=";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://rubygems.org/";
|
|
license = with licenses; [ mit /* or */ ruby ];
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
};
|
|
}
|