From d396bd07d37dabed7d0de91a24a0b397614333ab Mon Sep 17 00:00:00 2001 From: Erik Garrison Date: Wed, 25 Oct 2023 21:01:49 -0500 Subject: [PATCH] document nix build --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 945f6bd4..d8789239 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,14 @@ Static builds are unlikely to be supported on OSX, and require appropriate stati For more information on optimisations, debugging and GNU Guix builds, see [INSTALL.md](./INSTALL.md) and [CMakeLists.txt](./CMakeLists.txt). +### Nix build + +If you have `nix`, build and installation in your profile are as simple as: + +``` +nix-build && nix-env -i ./result +``` + #### Notes for distribution If you need to avoid machine-specific optimizations, use the `CMAKE_BUILD_TYPE=Generic` build type: