From 918f3492f2b419fc536c574da2db3cab5bfc0576 Mon Sep 17 00:00:00 2001 From: qbisi Date: Sat, 7 Mar 2026 12:23:59 +0800 Subject: [PATCH] introduce nix: use prebuilt binary from nixpkgs --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 9f6fa7c3818..97bd93153a0 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,19 @@ with [various versions](https://packages.debian.org/search?keywords=python3-dolfinx&searchon=names&exact=1&suite=all§ion=all) of Debian. Install with `apt-get install fenicsx`. +#### Nix packages + +[Nix](https://nixos.org/) is a tool that takes a unique +approach to package management and system configuration. + +To create a python venv with system-site dolfinxs and +pyvista from nixpkgs: + +```shell +nix-shell -p "python3.withPackages (ps: with ps; [ fenics-dolfinx pyvista ])" \ + --run "python -m venv --system-site-packages .venv" +``` + #### Docker images To run a Docker image with the latest release of DOLFINx: