News for hackers. Stuff that matters.
Re:Sapphire: Rust based package manager for macOS (Homebrew ... by Scramblejams on Tuesday April 22, 2025 @04:46PM (#43766122)
Cool project, good luck with it!

If I may surface one use case: Several years ago I had to manage a bunch of Macs for CI jobs. The build process (Unreal's UAT) didn't support running more than one build process at a time, and Docker was really slow, so I'd hoped to use different user accounts to bypass that and get some parallelization gains. Homebrew made that very difficult with its penchant for system-wide installs. So a feature request: I'd love to see a competitive package manager that limits itself to operating somewhere (overridable) in the user's home directory.

Re:Sapphire: Rust based package manager for macOS (Homebrew ... by alexykn on Tuesday April 22, 2025 @04:49PM (#43766153)
Initial idea for this really came from my dayjob too, we have macs but no way to centrally manage them. The client / server part for the declarative system manager I want to build on top of this is quite far out yet though. At least several months
Re:Sapphire: Rust based package manager for macOS (Homebrew ... by watermelon0 on Tuesday April 22, 2025 @05:39PM (#43766583)
IIRC the main reason here is that brew path is hardcoded during the build process of packages, which means that you wouldn't be able to use bottles.

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.

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.

Re:Sapphire: Rust based package manager for macOS (Homebrew ... by amarshall on Tuesday April 22, 2025 @05:28PM (#43766488)
Nix effectively has per-user packages, but it’s hard to read into your full use case from your comment.
Re:Sapphire: Rust based package manager for macOS (Homebrew ... by benwaffle on Tuesday April 22, 2025 @06:39PM (#43766965)
oh, I guess this is why the nix installer creates 32 macOS users called _nixbld$N
Re:Sapphire: Rust based package manager for macOS (Homebrew ... by homebrewer on Tuesday April 22, 2025 @06:50PM (#43767041)