watchman: add update script to bulk update all the Facebook stuff

This commit is contained in:
K900
2025-02-10 17:58:06 +03:00
parent a57103db4d
commit a56f556e08
2 changed files with 23 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ stdenv.mkDerivation (finalAttrs: {
remove-references-to -t ${folly.fmt.dev} $out/bin/*
'';
passthru.updateScript = nix-update-script { };
passthru.updateScript = ./update.sh;
meta = {
description = "Watches files and takes action when they change";

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-update cargo
# shellcheck shell=bash
set -euf -o pipefail
# toposorted manually, please keep in order
PACKAGES=(
"folly"
"fizz"
"mvfst"
"wangle"
"fbthrift"
"fb303"
"edencommon"
)
for P in "${PACKAGES[@]}"; do
nix-update "$P" --commit
done
nix-update watchman --commit --generate-lockfile --lockfile-metadata-path "watchman/cli"