bundlerEnv: fix documentation argument

This was ignored before.  Now that it's passed through, it's possible
to do

    (bundlerEnv {
      name = "...";
      gemdir = ./.;
      document = [ "ri" ];
    }).env

and get an environment where ri can be used to read gem documentation.
This commit is contained in:
Alyssa Ross 2021-09-18 10:58:24 +00:00
parent 483b311b17
commit aafa2db61a
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -38,7 +38,7 @@ let
filteredGemset = filterGemset { inherit ruby groups; } importedGemset;
configuredGemset = lib.flip lib.mapAttrs filteredGemset (name: attrs:
applyGemConfigs (attrs // { inherit ruby; gemName = name; })
applyGemConfigs (attrs // { inherit ruby document; gemName = name; })
);
hasBundler = builtins.hasAttr "bundler" filteredGemset;