nix-community / bundix

Generates a Nix expression for your Bundler-managed application. [maintainer=@manveru]
160 stars 54 forks source link

Generated lock files contain different versions than nixpkgs #95

Open l0b0 opened 1 year ago

l0b0 commented 1 year ago

To reproduce in this branch:

  1. rm Gemfile.lock gemset.nix
  2. bundix --lock
  3. Compare

    $ nix-store --query --references "$(nix-instantiate shell.nix)" | grep 'jekyll-[0-9]'
    /nix/store/r8xwb2jyv16ch2qfn66fmanzybigy8dc-jekyll-4.2.0.drv

    with

    $ grep 'jekyll ([0-9]' Gemfile.lock
       jekyll (4.3.1)

Is it possible to get bundix to use the package version in the current shell in the lock files?

Attempted workaround: Manually set the correct gem version in Gemfile, as in, gem 'jekyll', '4.2.0'.