Installing Ronin on Nix
Copy/Paste Instructions
nix-env -iA nixpkgs.ronin
Detailed Breakdown
Required dependencies will be installed automatically.
Ruby
Next, we will need to install Ruby >= 3.0.0, which should already be available in your system’s package manager.
Since nixpkgs-23.05
and nixos-23.05
, Nix package manager uses Ruby 3.1 as default. So we should check what is the version of nixpkgs
.
nix-channel --list
# nixpkgs https://nixos.org/channels/nixpkgs-22.11
If we are using the version before nixpkgs-23.05
, we should add the more recent version of channel.
nix-channel --add https://nixos.org/channels/nixpkgs-23.05 # or nixpkgs-unstable
or nixos-23.05
if we’re using NixOS.
nix-channel --add https://nixos.org/channels/nixos-23.05 # or nixos-unstable
nix-channel --update
Ronin
Now that everything else is installed, it is time to install Ronin!
If we’re not using NixOS,
nix-env -iA nixpkgs.ronin
If we’re using NixOS,
nix-env -iA nixos.ronin
Postinstall
Assuming no errors occur, you should now be able to run ronin
:
ronin help
Troubleshooting
Ruby and many ruby gems will not work if the LANG
environment variable is
not set or set to C
. Make sure that LANG
is set to a UTF8 language, such as
en_US.UTF-8
.