erofs-utils: enable running on darwin#239473
Conversation
|
Very cool. Successfully tested Does this mean we could avoid the Darwin builder having any persistent state at all? I didn't realize the remote builder protocol could work with an immutable store. Would there be a startup time impact from making the image or is it scoped down to only the required components for the builder that shouldn't change often? |
Yes there would be an impact. See the original commit for more info: afc60d0 If we can build erofs images on MacOS too, however, we could get rid of the Even if every test that uses a Nix Store image is a little bit slower, I think overall it would be still a big win to not cache so many mostly useless images anymore. |
a811671 to
8608c02
Compare
|
Nit: |
|
Erofs is a Linux thing. |
|
@ehmry Closing PRs like this is quite rude, EROFS is a Linux filesystem sure, but there's nothing that says you have to use Linux to write stuff related to that filesystem, is there? |
|
I'm reopening this since it seems like this was closed prematurely and people doing the work to make stuff build on officially unsupported platforms usually is a good thing. |
|
I wan't aware that FUSE was permitted by Apple, so I was in error to close this issue. I still don't think accommodating Apple users is helpful. |
that is another discussion entirely. I think piegames posted about this on discourse a few days ago. |
Is your point, you don't want to maintain a Darwin-enabled erofs-utils? In that case, would someone else taking ownership of that part as a co-maintainer enough for you? |
|
I don't think this is about FUSE. |
|
@ehmry made a mistake, they acknowledge it. Everything should be fine now. Can we get back on topic of the pr? If you want further discussion I suggest you to move it to matrix or discourse but a pr is not the place for this, |
c8b888a to
22b7360
Compare
|
Thank you @wegank for removing the "offending" commit that caused massive rebuilds :D. @ehmry I'm happy to co-maintain the package to take some of the (Darwin) burden off of you. |
8608c02 to
b6abb4d
Compare
Description of changes
Enable erofs-utils to build on Darwin. This is especially interesting because it enables
darwin.builderto usevirtualisation.useNixStoreImage = true;andvirtualisation.writableStore = false;at the same time. With this combination of options an erofs image is built just in time inside the script that calls QEMU.Doesn't currently build because of #236560
#239248 introduces a fix.
As a stopgap solution, tests for perlPackages.Po4a are disabled in b226d46840f6b20ec0d2072c41678a5a5b184368
When a proper solution is added to Nixpkgs, the corresponding commit can be removed.
For reference, the homebrew formula for erofs-utils: https://github.com/Homebrew/homebrew-core/blob/e4660044d3e2d53f5a74efd079bf29af2bd3f12a/Formula/erofs-utils.rb
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)