diff options
author | Vladimír Čunát <v@cunat.cz> | 2023-09-12 19:06:44 +0200 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2023-09-12 19:06:44 +0200 |
commit | 300eaad172fef6365ffd06d3816c2e6377c46311 (patch) | |
tree | b877cef4af6268503496fe59cc0f72a36da32b9f /pkgs/applications/editors/jupyter-kernels/iruby/update.sh | |
parent | bc6f47f644cc42eed1fab8d0e16bb4ce32833f52 (diff) | |
parent | b874fb56d0f07a0ff88fcdc17e0001760ca89556 (diff) | |
download | nixlib-300eaad172fef6365ffd06d3816c2e6377c46311.tar nixlib-300eaad172fef6365ffd06d3816c2e6377c46311.tar.gz nixlib-300eaad172fef6365ffd06d3816c2e6377c46311.tar.bz2 nixlib-300eaad172fef6365ffd06d3816c2e6377c46311.tar.lz nixlib-300eaad172fef6365ffd06d3816c2e6377c46311.tar.xz nixlib-300eaad172fef6365ffd06d3816c2e6377c46311.tar.zst nixlib-300eaad172fef6365ffd06d3816c2e6377c46311.zip |
Merge branch 'master' into staging-next
Diffstat (limited to 'pkgs/applications/editors/jupyter-kernels/iruby/update.sh')
-rwxr-xr-x | pkgs/applications/editors/jupyter-kernels/iruby/update.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/applications/editors/jupyter-kernels/iruby/update.sh b/pkgs/applications/editors/jupyter-kernels/iruby/update.sh new file mode 100755 index 000000000000..11ae225a79b5 --- /dev/null +++ b/pkgs/applications/editors/jupyter-kernels/iruby/update.sh @@ -0,0 +1,18 @@ +#! /usr/bin/env nix-shell +#! nix-shell -i bash -p curl jq bundler bundix ruby + +set -eu -o pipefail + +cd "$(dirname "$0")" + +# Update Gemfile with the latest iruby version +echo "source 'https://rubygems.org'" > Gemfile +echo -n "gem 'iruby', " >> Gemfile +curl https://rubygems.org/api/v1/gems/iruby.json | jq .version >> Gemfile + +# Regenerate Gemfile.lock +export BUNDLE_FORCE_RUBY_PLATFORM=1 +bundle lock + +# Regenerate gemset.nix +bundix -l |