Files
nixpkgs/pkgs/development/interpreters/ruby/rubygems/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
1.0 KiB
Nix

{
fetchurl,
gitUpdater,
lib,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "rubygems";
version = "3.7.2";
src = fetchurl {
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
hash = "sha256-7+zgEiWlMvS1LPh2TSCgDg0p7W+Fsz2TAt9IlqkPpas=";
};
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
'';
passthru.updateScript = gitUpdater {
url = "https://github.com/rubygems/rubygems.git";
rev-prefix = "v";
ignoredVersions = "(pre|alpha|beta|rc|bundler).*";
};
meta = {
description = "Package management framework for Ruby";
changelog = "https://github.com/rubygems/rubygems/blob/v${version}/CHANGELOG.md";
homepage = "https://rubygems.org/";
license = with lib.licenses; [
mit # or
ruby
];
mainProgram = "gem";
maintainers = with lib.maintainers; [ zimbatm ];
};
}