nixpkgs/pkgs/development/interpreters/ruby/rubygems/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
725 B
Nix
Raw Normal View History

2021-07-16 04:20:00 +00:00
{ stdenv, lib, fetchurl }:
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";
src = fetchurl {
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
2021-08-30 11:58:39 +00:00
sha256 = "sha256-9wa6lOWnua8zBblQKRgjjiTVPYp2TW0n7XOvgW7u1e8=";
};
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 ];
};
}