Packaging/Ruby: Difference between revisions
Recommend bundle lock over install. Lock only generates the lockfile, doesn't try to install the gems |
Add example for setting gemConfig for bundlerEnv, extending from defaultGemConfig. |
||
Line 92: | Line 92: | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||
=== Override gemConfig locally === | |||
<syntaxhighlight lang="nix"> | |||
gems = bundlerEnv { | |||
name = "beef-env"; | |||
inherit ruby; | |||
gemdir = ./.; | |||
gemConfig = pkgs.defaultGemConfig // { | |||
do_sqlite3 = attrs: { | |||
buildInputs = [ sqlite ]; | |||
}; | |||
}; | |||
}; | |||
</syntaxhighlight> | |||
Line 115: | Line 128: | ||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
== Using Bundler 2 == | == Using Bundler 2 == |