-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failing to execute bundix due to bundler version read in Gemfile #92
Comments
It looks like If there's a way to override that, you might be able to replace that with bundler |
I was able to hack around this by checking out the bundix repo, replacing the bundler reference with an old version from nix, building it, and using the executable in my project. Here's the changes I made to
and then after that, I ran You can check out the history of bundler on nixpkgs here to find other commit shas with different versions: https://github.com/NixOS/nixpkgs/commits/350fd0044447ae8712392c6b212a18bdf2433e71/pkgs/development/ruby-modules/bundler Someone with more nix experience than me could probably come up with a better solution, maybe there's a way you can override bundix's bundler version from just a reference to the derivation? |
In case it helps anyone, here’s how I did it: let
bundler_1_17_3 = (import (pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "fcc8660d359d2c582b0b148739a72cec476cfef5";
hash = "sha256-eZhUhVwSWkLqhmbOoBDd26J42CeyhMcYxXRqjGuVXFs=";
}) { }).bundler;
bundix = pkgs.bundix.override {
bundler = bundler_1_17_3.override {
ruby = pkgs.ruby_2_7;
};
};
in
pkgs.mkShell {
buildInputs = [ bundix ];
} Nix Package Versions is useful for finding the old revision. |
Hello,
It would seem that bundix is unhappy with the bundler read in the Gemfile. My understanding is bundix should be an isolated binary with all its necessary dependencies with it.
The text was updated successfully, but these errors were encountered: