Packaging/Ruby: Difference between revisions

Recommend bundle lock over install. Lock only generates the lockfile, doesn't try to install the gems
F0x (talk | contribs)
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>
=== set the local gemConfig ===
'''TODO''': also merge with the <code>defaultGemConfig</code> somehow


== Using Bundler 2 ==
== Using Bundler 2 ==