You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package name forROOTin nixpkgs is`root`. It can be installed into the user environment using
199
+
The package name forROOTin nixpkgs is`root`.
200
200
201
+
You can start a temporary shell to try out ROOTas follows:
201
202
```sh
202
-
$ nix-env -f '<nixpkgs>'-iA root
203
+
$ nix-shell -p root --run root
204
+
$ root
203
205
```
204
206
205
-
Running ina temporary environment can be achieved with
206
-
207
+
As explained inthe [NixOS Wiki](https://nixos.wiki/wiki/Python), the preferred way to use Python is to add it to your environment along withany libraries you need.
208
+
NixOS also has a `python3.root` package for that, which you can add to a temporary Python environment in a Nix shell like this:
207
209
```sh
208
-
$ nix-shell -p root --run root
210
+
$ nix-shell -p "python3.withPackages (pkgs: with pkgs; [ root ])"
211
+
$ python -i -c "import ROOT"
209
212
```
210
213
211
214
A `root5` package is provided for the legacy software support.
0 commit comments