at master 483 B view raw
1#!/usr/bin/env nix-shell 2#!nix-shell -i bash -p bundler bundix 3 4set -euf -o pipefail 5 6( 7 cd pkgs/development/ruby-modules/with-packages 8 rm -f gemset.nix Gemfile.lock 9 # Since bundler 2+, the lock command generates a platform-dependent 10 # Gemfile.lock, hence causing to bundix to generate a gemset tied to the 11 # platform from where it was executed. 12 BUNDLE_FORCE_RUBY_PLATFORM=1 bundle lock 13 bundix 14 mv gemset.nix ../../../top-level/ruby-packages.nix 15 rm -f Gemfile.lock 16)