Skip to content

Commit 918f349

Browse files
committed
introduce nix: use prebuilt binary from nixpkgs
1 parent 6826f3c commit 918f349

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,19 @@ with [various
141141
versions](https://packages.debian.org/search?keywords=python3-dolfinx&searchon=names&exact=1&suite=all&section=all)
142142
of Debian. Install with `apt-get install fenicsx`.
143143

144+
#### Nix packages
145+
146+
[Nix](https://nixos.org/) is a tool that takes a unique
147+
approach to package management and system configuration.
148+
149+
To create a python venv with system-site dolfinxs and
150+
pyvista from nixpkgs:
151+
152+
```shell
153+
nix-shell -p "python3.withPackages (ps: with ps; [ fenics-dolfinx pyvista ])" \
154+
--run "python -m venv --system-site-packages .venv"
155+
```
156+
144157
#### Docker images
145158

146159
To run a Docker image with the latest release of DOLFINx:

0 commit comments

Comments
 (0)