biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / editors / jupyter-kernels / iruby / update.sh
blob11ae225a79b54e0b2693e97293f2d6b498b43163
1 #! /usr/bin/env nix-shell
2 #! nix-shell -i bash -p curl jq bundler bundix ruby
4 set -eu -o pipefail
6 cd "$(dirname "$0")"
8 # Update Gemfile with the latest iruby version
9 echo "source 'https://rubygems.org'" > Gemfile
10 echo -n "gem 'iruby', " >> Gemfile
11 curl https://rubygems.org/api/v1/gems/iruby.json | jq .version >> Gemfile
13 # Regenerate Gemfile.lock
14 export BUNDLE_FORCE_RUBY_PLATFORM=1
15 bundle lock
17 # Regenerate gemset.nix
18 bundix -l