nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

buildRubyGem: do not override fixupPhase (#323587)

Oops, looks like we were overriding stdenv’s fixupPhase that runs
fixupOutputHooks, including patchShebangsAuto.

authored by

Ivan Trubach and committed by
GitHub
4dec9be4 3dd66849

+8 -12
+8 -12
pkgs/development/ruby-modules/gem/default.nix
··· 251 251 done 252 252 ''} 253 253 254 - runHook postInstall 255 - ''; 256 - 257 - # For Ruby-generated binstubs, shebang paths are already in Nix store but for 258 - # ruby used to build the package. Update them to match the host system. Note 259 - # that patchShebangsAuto ignores scripts where shebang line is already in Nix 260 - # store. 261 - fixupPhase = attrs.fixupPhase or '' 262 - runHook preFixup 263 - if [[ -d $out/${ruby.gemPath}/bin ]]; then 264 - patchShebangs --update --host $out/${ruby.gemPath}/bin 254 + # For Ruby-generated binstubs, shebang paths are already in Nix store but for 255 + # ruby used to build the package. Update them to match the host system. Note 256 + # that patchShebangsAuto ignores scripts where shebang line is already in Nix 257 + # store. 258 + if [[ -d $GEM_HOME/bin ]]; then 259 + patchShebangs --update --host -- "$GEM_HOME"/bin 265 260 fi 266 - runHook postFixup 261 + 262 + runHook postInstall 267 263 ''; 268 264 269 265 propagatedBuildInputs = gemPath ++ propagatedBuildInputs;