Currently, a self-extracting archive created by makeself will fail to
properly execute on NixOS because the boilerplate Bash code it uses to
clean up the temporary directory it extracted its contents into
assumes that the `rm` command is installed at `/bin/rm`, which is not
the case on NixOS.
This commit, a backport of a pull request I made to the upstream
repository at megastep/makeself#142, fixes the issue by causing the
boilerplate code to call `rm` without specifying an absolute path,
which allows the version of `rm` from one's current Nix environment to
be used instead.
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/makeself/versions.
These checks were done:
- built on NixOS
- ran ‘/nix/store/5j88qgnbbry87m8164s0a9agvz92z36q-makeself-2.4.0/bin/makeself -v’ and found version 2.4.0
- ran ‘/nix/store/5j88qgnbbry87m8164s0a9agvz92z36q-makeself-2.4.0/bin/makeself --version’ and found version 2.4.0
- found 2.4.0 with grep in /nix/store/5j88qgnbbry87m8164s0a9agvz92z36q-makeself-2.4.0
- directory tree listing: https://gist.github.com/5a4661783df3d9d6558c8f6670385b79