summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/bundled-common/default.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-09-18 10:58:24 +0000
committerAlyssa Ross <hi@alyssa.is>2021-09-18 10:58:24 +0000
commitaafa2db61aeeb8e6af5fe1c0ebafca4e367e0280 (patch)
treee29ddba3c5b8c9b3f2a2667d2a8c3534d6f8b943 /pkgs/development/ruby-modules/bundled-common/default.nix
parent483b311b17efa6e42cd5a48736d6578af357bcfe (diff)
downloadnixpkgs-aafa2db61aeeb8e6af5fe1c0ebafca4e367e0280.tar
nixpkgs-aafa2db61aeeb8e6af5fe1c0ebafca4e367e0280.tar.gz
nixpkgs-aafa2db61aeeb8e6af5fe1c0ebafca4e367e0280.tar.bz2
nixpkgs-aafa2db61aeeb8e6af5fe1c0ebafca4e367e0280.tar.lz
nixpkgs-aafa2db61aeeb8e6af5fe1c0ebafca4e367e0280.tar.xz
nixpkgs-aafa2db61aeeb8e6af5fe1c0ebafca4e367e0280.tar.zst
nixpkgs-aafa2db61aeeb8e6af5fe1c0ebafca4e367e0280.zip
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.
Diffstat (limited to 'pkgs/development/ruby-modules/bundled-common/default.nix')
-rw-r--r--pkgs/development/ruby-modules/bundled-common/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/ruby-modules/bundled-common/default.nix b/pkgs/development/ruby-modules/bundled-common/default.nix
index 65416d9295b..70afd412f3e 100644
--- a/pkgs/development/ruby-modules/bundled-common/default.nix
+++ b/pkgs/development/ruby-modules/bundled-common/default.nix
@@ -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;