-
Notifications
You must be signed in to change notification settings - Fork 24
meson.build:54:8: ERROR: Automatic wrap-based subproject downloading is disabled #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
After installing nix in the container this is the command I'm running: nix shell github:hdoc/hdoc --extra-experimental-features flakes --extra-experimental-features nix-command --no-write-lock-file |
If you're in a Nix shell then you can build hdoc using the normal commands like in the readme:
Alternatively, it's possible to build hdoc with the Nix build system but Nix enforces purity requirements which makes downloading project source from the internet impossible. It's possible to define all the project sources as part of the Nix flake but I would encourage you to try building in the interactive shell first. |
Relevant: #25 (comment) Maybe time to switch from |
The issue here is that Nix expects a hermetic build environment with no network access. Meson, when it notices that the wraps are not present locally, will try to access the network to download the wraps. This causes the Nix build to fail. The solution is to specify the exact hashes of all the wrap sources as well as the Meson patches (where applicable) so that Nix knows about them. Then, Nix will go and download them and place them in the correct location during the build so that Meson has the wraps locally and doesn't need to download them. We have this implemented internally and will be releasing a new Nix Flake with this functionality as part of our next release. I will make a comment on this PR when that happens. |
Hi there,
Nix flake working "out of the box" sounds wonderful. After spending a few hours trying to use it on MacOS and Ubuntu and Alpine containers I'm still not getting past:
Any tips?
The text was updated successfully, but these errors were encountered: