From a56f556e08b104bb6bf0a4f37ce43d2afa346847 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 10 Feb 2025 17:58:06 +0300 Subject: [PATCH] watchman: add update script to bulk update all the Facebook stuff --- pkgs/by-name/wa/watchman/package.nix | 2 +- pkgs/by-name/wa/watchman/update.sh | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 pkgs/by-name/wa/watchman/update.sh diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 7e662f24b40e..66d86f6b8e31 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -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"; diff --git a/pkgs/by-name/wa/watchman/update.sh b/pkgs/by-name/wa/watchman/update.sh new file mode 100755 index 000000000000..33be4da4b092 --- /dev/null +++ b/pkgs/by-name/wa/watchman/update.sh @@ -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"