mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 20:44:12 +00:00
buildRubyGem: do not override fixupPhase (#323587)
Oops, looks like we were overriding stdenv’s fixupPhase that runs fixupOutputHooks, including patchShebangsAuto.
This commit is contained in:
parent
3dd6684936
commit
4dec9be42a
@ -251,19 +251,15 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
|
||||
done
|
||||
''}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
# For Ruby-generated binstubs, shebang paths are already in Nix store but for
|
||||
# ruby used to build the package. Update them to match the host system. Note
|
||||
# that patchShebangsAuto ignores scripts where shebang line is already in Nix
|
||||
# store.
|
||||
fixupPhase = attrs.fixupPhase or ''
|
||||
runHook preFixup
|
||||
if [[ -d $out/${ruby.gemPath}/bin ]]; then
|
||||
patchShebangs --update --host $out/${ruby.gemPath}/bin
|
||||
# For Ruby-generated binstubs, shebang paths are already in Nix store but for
|
||||
# ruby used to build the package. Update them to match the host system. Note
|
||||
# that patchShebangsAuto ignores scripts where shebang line is already in Nix
|
||||
# store.
|
||||
if [[ -d $GEM_HOME/bin ]]; then
|
||||
patchShebangs --update --host -- "$GEM_HOME"/bin
|
||||
fi
|
||||
runHook postFixup
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = gemPath ++ propagatedBuildInputs;
|
||||
|
Loading…
Reference in New Issue
Block a user