From ec13e46dd1e314b2384cc7de59f884a22ea67788 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Fri, 9 Sep 2022 11:05:58 +0200 Subject: [PATCH] redmine: support arch-dependent gem dependencies in update.sh Method inspired by the update script for `discourse` in nixpkgs. --- pkgs/applications/version-management/redmine/update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/version-management/redmine/update.sh b/pkgs/applications/version-management/redmine/update.sh index de59f4685d5c..3c4d842735cf 100755 --- a/pkgs/applications/version-management/redmine/update.sh +++ b/pkgs/applications/version-management/redmine/update.sh @@ -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