Files
nixpkgs/pkgs/by-name/re/redmine/update.sh
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

33 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env nix-shell
#!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
# 2. Manually modify the database lines in Gemfile (diff the two files, it's obvious)
pkg_dir="$(dirname "$0")"
cd ${pkg_dir}
for file in "gemset.nix" "Gemfile.lock"; do
if [ -f ${file} ]; then
rm ${file}
fi
done
bundle lock --add-platform ruby
bundle lock --remove-platform aarch64-linux
bundle lock --remove-platform aarch64-linux-gnu
bundle lock --remove-platform aarch64-linux-musl
bundle lock --remove-platform arm-linux
bundle lock --remove-platform arm-linux-gnu
bundle lock --remove-platform arm-linux-musl
bundle lock --remove-platform arm64-darwin
bundle lock --remove-platform x86-linux
bundle lock --remove-platform x86-linux-gnu
bundle lock --remove-platform x86-linux-musl
bundle lock --remove-platform x86_64-darwin
bundle lock --remove-platform x86_64-linux
bundle lock --remove-platform x86_64-linux-gnu
bundle lock --remove-platform x86_64-linux-musl
bundix -l