2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-30 09:33:41 +00:00
nixpkgs/pkgs/applications/misc/jekyll/update.sh
Arnout Engelen d0ebe6b876
jekyll: force ruby platform when updating dependencies
Fixes  where an updated jekyll couldn't be used because
the platform-specific and ruby version of the nokogiri dependency
got confused. Inspiration for this fix from
https://github.com/nix-community/bundix/issues/88
2022-11-23 13:18:53 +01:00

16 lines
324 B
Bash
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bundix zlib
set -o errexit
set -o nounset
readonly BASEDIR="$(dirname $(readlink -f $0))"
for directory in "basic" "full"; do
pushd "$BASEDIR/$directory"
rm -f Gemfile.lock gemset.nix
BUNDLE_FORCE_RUBY_PLATFORM=true bundix --magic
rm -rf .bundle vendor
popd
done