From 284898d6be534d4068e901d2e98ae68b09831228 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Mon, 11 Sep 2023 18:12:10 -0700 Subject: [PATCH] Use BUNDLE_FORCE_RUBY_PLATFORM=1 + further update.sh improvements --- .../editors/jupyter-kernels/iruby/update.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/editors/jupyter-kernels/iruby/update.sh b/pkgs/applications/editors/jupyter-kernels/iruby/update.sh index efd4e5d4d6d9..11ae225a79b5 100755 --- a/pkgs/applications/editors/jupyter-kernels/iruby/update.sh +++ b/pkgs/applications/editors/jupyter-kernels/iruby/update.sh @@ -1,4 +1,5 @@ -#!/usr/bin/env bash +#! /usr/bin/env nix-shell +#! nix-shell -i bash -p curl jq bundler bundix ruby set -eu -o pipefail @@ -7,10 +8,11 @@ cd "$(dirname "$0")" # Update Gemfile with the latest iruby version echo "source 'https://rubygems.org'" > Gemfile echo -n "gem 'iruby', " >> Gemfile -nix shell .#curl -c curl https://rubygems.org/api/v1/gems/iruby.json | nix shell .#jq -c jq .version >> Gemfile +curl https://rubygems.org/api/v1/gems/iruby.json | jq .version >> Gemfile # Regenerate Gemfile.lock -nix shell .#bundler -c bundle lock +export BUNDLE_FORCE_RUBY_PLATFORM=1 +bundle lock # Regenerate gemset.nix -nix shell .#bundix -c bundix -l +bundix -l