Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,19 @@ If you encounter any issues, feel free to report them to the [guix-science issue

### <a name="nixos_nix_nixpkgs" />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 '<nixpkgs>' -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.
Expand Down
2 changes: 1 addition & 1 deletion manual/integrate_root_into_my_cmake_project/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading