Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / maintainers / scripts / update-ruby-packages
blob60da1a1b5938f5436d2f253ce5fffa0947edb4e0
1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p bundler bundix
4 set -euf -o pipefail
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