diff --git a/install/index.md b/install/index.md index abfb72e9..62dd505d 100644 --- a/install/index.md +++ b/install/index.md @@ -196,16 +196,19 @@ If you encounter any issues, feel free to report them to the [guix-science issue ### NixOS/Nix/Nixpkgs -The package name for ROOT in nixpkgs is `root`. It can be installed into the user environment using +The package name for ROOT in nixpkgs is `root`. +You can start a temporary shell to try out ROOT as follows: ```sh -$ nix-env -f '' -iA root +$ nix-shell -p root +$ root ``` -Running in a temporary environment can be achieved with - +As explained in the [NixOS Wiki](https://nixos.wiki/wiki/Python), the preferred way to use Python is to add it to your environment along with any libraries you need. +NixOS also has a `python3.root` package for that, which you can add to a temporary Python environment in a Nix shell like this: ```sh -$ nix-shell -p root --run root +$ nix-shell -p "python3.withPackages (pkgs: with pkgs; [ root ])" +$ python -i -c "import ROOT" ``` A `root5` package is provided for the legacy software support. diff --git a/manual/integrate_root_into_my_cmake_project/index.md b/manual/integrate_root_into_my_cmake_project/index.md index c58eb556..cb9eb9ee 100644 --- a/manual/integrate_root_into_my_cmake_project/index.md +++ b/manual/integrate_root_into_my_cmake_project/index.md @@ -61,7 +61,7 @@ The following is an example of a project that creates a library and an executabl # Otherwise, you must tell the build system where to look for ROOT, # for example by passing `-DROOT_DIR="/path/to/root/installation` at CMake configuration time. - cmake_minimum_required(VERSION 3.0 FATAL_ERROR) + cmake_minimum_required(VERSION 3.20 FATAL_ERROR) project(event) # Locate the ROOT package and define a number of useful targets and variables.