···251251 done252252 ''}253253254254- runHook postInstall255255- '';256256-257257- # For Ruby-generated binstubs, shebang paths are already in Nix store but for258258- # ruby used to build the package. Update them to match the host system. Note259259- # that patchShebangsAuto ignores scripts where shebang line is already in Nix260260- # store.261261- fixupPhase = attrs.fixupPhase or ''262262- runHook preFixup263263- if [[ -d $out/${ruby.gemPath}/bin ]]; then264264- patchShebangs --update --host $out/${ruby.gemPath}/bin254254+ # For Ruby-generated binstubs, shebang paths are already in Nix store but for255255+ # ruby used to build the package. Update them to match the host system. Note256256+ # that patchShebangsAuto ignores scripts where shebang line is already in Nix257257+ # store.258258+ if [[ -d $GEM_HOME/bin ]]; then259259+ patchShebangs --update --host -- "$GEM_HOME"/bin265260 fi266266- runHook postFixup261261+262262+ runHook postInstall267263 '';268264269265 propagatedBuildInputs = gemPath ++ propagatedBuildInputs;