depot/third_party/nixpkgs/pkgs/tools/security/wpscan/update.sh
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

16 lines
436 B
Bash
Executable file

#!/usr/bin/env nix-shell
#! nix-shell -i bash -p bash bundix bundler
set -e
cd "$(dirname "${BASH_SOURCE[0]}")"
rm -f Gemfile.lock Gemfile.lock
# Otherwise nokogiri will fail to build.
# https://github.com/nix-community/bundix/issues/88
bundler config set --local force_ruby_platform true
bundler lock
BUNDLE_GEMFILE=Gemfile bundler lock --lockfile=Gemfile.lock
bundix --gemfile=Gemfile --lockfile=Gemfile.lock --gemset=gemset.nix