Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 46 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ fetchurl, gitUpdater, lib, stdenv,}:
stdenv.mkDerivation rec { pname = "rubygems"; version = "3.6.9";
src = fetchurl { url = "https://rubygems.org/rubygems/rubygems-${version}.tgz"; hash = "sha256-/91Gxq2+y52sVhzAA2ZkBu/S7ZPKIbX8xHBiAlAHIJ0="; };
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 ]; };}