Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
fetchurl,
|
|
gitUpdater,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rubygems";
|
|
version = "3.7.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://rubygems.org/rubygems/rubygems-${version}.tgz";
|
|
hash = "sha256-dQyMdxGA1B7SNYNE5UYe3ugxWMCoG3eZaaEzmWG8EWM=";
|
|
};
|
|
|
|
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 = 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
|
|
];
|
|
mainProgram = "gem";
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
};
|
|
}
|