Installing Ronin on Nix

Copy/Paste Instructions

nix-env -iA nixpkgs.ronin

Detailed Breakdown

Required dependencies will be installed automatically.


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

If we are using the version before nixpkgs-23.05, we should add the more recent version of channel.

nix-channel --add  # or nixpkgs-unstable

or nixos-23.05 if we’re using NixOS.

nix-channel --add  # or nixos-unstable
nix-channel --update


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


Assuming no errors occur, you should now be able to run ronin:

ronin help


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.