redmine: support arch-dependent gem dependencies in update.sh

Method inspired by the update script for `discourse` in nixpkgs.
This commit is contained in:
Pierre Bourdon 2022-09-09 11:05:58 +02:00
parent 2da64a8127
commit ec13e46dd1
No known key found for this signature in database
GPG Key ID: 6FB80DCD84DA0F1C

View File

@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell --pure -i bash -p cacert bundix
#!nix-shell --pure -i bash -p cacert bundix bundler
# Do these steps before running this script:
# 1. Copy Gemfile from new Redmine version to this folder
@ -14,4 +14,6 @@ for file in "gemset.nix" "Gemfile.lock"; do
fi
done
bundle lock --add-platform ruby
bundle lock --remove-platform x86_64-linux
bundix -l