git.iko.soy/typeable/nixpkgs
on master help sign in
bundlerEnv: Allow overriding bundler

Prior to this it doesn't seem to be possible to customize the version of bundler used in a bundlerEnv app. This change allows something like the following: ```nix let bundler = pkgs.buildRubyGem rec { gemName="bundler"; name="bundler-2.2.11"; version="2.2.11"; source.sha256="1izx6wsjdm6mnbxazgz1z5qbhwrrisbq0np2nmx4ij6lrqjy18jf"; }; in pkgs.bundlerEnv.override { inherit bundler; } { name="test"; gemdir=./.; } ``` to use bundler 2.2.11 rather than the 2.1.5 default.

commit878bae114264a36e8ef32d71e1ecd78560be983e authorJonathan del Strother <jdelStrother@gmail.com> dateTue 9 Mar 2021, 16:52 (6 years ago) parent78452c2
1 file changed+1−1
pkgs/development/ruby-modules/bundler-env/default.nix+1−1
pkgs/development/ruby-modules/bundler-env/default.nix+1−1
@@ -23,7 +23,7 @@
2323let
2424 inherit (import ../bundled-common/functions.nix {inherit lib ruby gemConfig groups; }) genStubsScript;
2525
26− basicEnv = (callPackage ../bundled-common {}) (args // { inherit pname name; mainGemName = pname; });
26+ basicEnv = (callPackage ../bundled-common { inherit bundler; }) (args // { inherit pname name; mainGemName = pname; });
2727
2828 inherit (basicEnv) envPaths;
2929 # Idea here is a mkDerivation that gen-bin-stubs new stubs "as specified" -