Re:Sapphire: Rust based package manager for macOS (Homebrew ...
by scribu on Tuesday April 22, 2025 @06:29PM
(#43766902)
You could run the build process with chroot or inside Docker, so that the hardcoded paths actually resolve to a designated subdirectory.
Re:Sapphire: Rust based package manager for macOS (Homebrew ...
by mananaysiempre on Tuesday April 22, 2025 @06:35PM
(#43766939)
Incidentally, that’s what is usually done in Nixpkgs in similar situations when there’s no better alternative, see buildFHSEnv et al.
Re:Sapphire: Rust based package manager for macOS (Homebrew ...
by akdev1l on Tuesday April 22, 2025 @09:46PM
(#43767964)
In many cases the build output also has hardcoded paths unfortunately
so doing `brew install` inside a container with the proper volumes it’s not sufficient to fix the issue. Everything would have to run from within the container as well.
I didn't check, but there is a chance that path is also hardcoded in (some) formulae, so even building from the source might not help here.