Skip to content

Commit

Permalink
Merge pull request fluidattacks#1269 from rohaquinlop/issue-1249
Browse files Browse the repository at this point in the history
feat(doc): fluidattacks#1249 rm makerubyversion
  • Loading branch information
jpverde authored Jan 15, 2024
2 parents 9d3e7b4 + 47b89ab commit 31fd5d1
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions docs/src/api/extensions/ruby.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,3 @@
## makeRubyVersion

Get a specific Ruby interpreter.

Types:

- makeRubyVersion (`function str -> package`):
- (`enum [ "3.1" "3.2" "3.3" ]`):
Version of the Ruby interpreter.

Example:

=== "main.nix"

```nix
# /path/to/my/project/makes/example/main.nix
{
makeRubyVersion,
makeScript,
...
}:
makeScript {
entrypoint = ''
ruby --version
'';
name = "example";
searchPaths = {
bin = [ (makeRubyVersion "3.1") ];
};
}
```

=== "Invocation"

```bash
$ m . /example

ruby 2.6.8p205 (2021-07-07) [x86_64-linux]
```

## makeRubyGemsInstall

Fetch and install the specified Ruby gems
Expand Down

0 comments on commit 31fd5d1

Please sign in to comment.