Introduce nix: use prebuilt binary packages from nixpkgs#4119
Draft
qbisi wants to merge 1 commit intoFEniCS:mainfrom
Draft
Introduce nix: use prebuilt binary packages from nixpkgs#4119qbisi wants to merge 1 commit intoFEniCS:mainfrom
qbisi wants to merge 1 commit intoFEniCS:mainfrom
Conversation
Member
|
I'd be open to adding a 'community supported' list of packaging systems to point people in the right direction (with a disclaimer), but I would rather not imply official support by providing a full set of instructions. |
Contributor
Author
|
The purpose is to draw dev/users's attention to nix build system. Not meant to burden the maintaince of this project.
|
Member
|
I will not accept the PR as it is - I do not really want to recommend nixos, or add huge amounts of nixos recipes to the README. We have had issues in the past with community maintained packages of varying quality and levels of support and it's caused issues for our users. I would propose the following: or similar. |
Contributor
Author
|
I will follow the recommend style and mark this draft for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
install nix
One can try the nix way in multiple platforms:
docker:
linux distro/macos:
or
install fenics-dolfinx
Once you have nix installed in your system, try this one-line to create python-venv with dolfinx installed
One might wonder where's the mpiexec that is compatible with the prebuilt petsc library, you can manually install mpi from nixpkgs by
or adding this shellHook to your zshrc