Skip to content

ruby

To use languages.ruby.version or languages.ruby.versionFile, run the following command:

devenv inputs add nixpkgs-ruby github:bobvanderlinden/nixpkgs-ruby --follows nixpkgs

Whether to enable tools for Ruby development.

Type: boolean

Default:

false

Example:

true

Declared by:

The Ruby package to use.

Type: package

Default:

pkgs.ruby

Declared by:

Whether to enable bundler.

Type: boolean

Default:

false

Example:

true

Declared by:

The bundler package to use.

Type: package

Default:

pkgs.bundler.override { ruby = cfg.package; }

Declared by:

Whether to enable documentation support for Ruby packages.

Type: boolean

Default:

false

Example:

true

Declared by:

Whether to enable Ruby Language Server.

Type: boolean

Default:

true

Example:

true

Declared by:

The Ruby language server package to use.

Type: package

Default:

pkgs.solargraph.override { ruby = cfg.package; }

Declared by:

The Ruby version to use. This automatically sets the languages.ruby.package using nixpkgs-ruby.

Type: null or string

Default:

null

Example:

"3.2.1"

Declared by:

The .ruby-version file path to extract the Ruby version from. This automatically sets the languages.ruby.package using nixpkgs-ruby. When the .ruby-version file exists in the same directory as the devenv configuration, you can use:

languages.ruby.versionFile = ./.ruby-version;

Type: null or absolute path

Default:

null

Example:

./.ruby-version

Declared by: