From 8dd8b36e273b6de3a59fe2e9eab96c68294c5513 Mon Sep 17 00:00:00 2001 From: josie Date: Thu, 21 May 2026 12:59:44 +0200 Subject: [PATCH] chore: bump frigate to v1.5.2 Brings, on top of v1.5.1: - 2b86ad2 bump to v1.5.2 - d19f77b restore new block info log in steady state - a9b4724 reduce verbose protocol related error logs - f930cad update readme with new bitcoind rpc config Drongo submodule pointer is unchanged from v1.5.1. The gradle dependency set did not change either, so pkgs/frigate/deps.json is left as-is. Also adds a README section documenting the bump procedure, since the steps (prefetch hash, drongo check, mitm-cache fetch script) weren't written down anywhere. Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 34 ++++++++++++++++++++++++++++++++++ pkgs/frigate/package.nix | 6 +++--- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f18ef79..5cd1c70 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,40 @@ checks.x86_64-linux.frigate = roost.lib.mkRegtestPresetE2E { }; ``` +## Updating frigate + +The pinned frigate tag lives in `pkgs/frigate/package.nix`. To bump it: + +1. Find the new tag and its commit SHA at + . +2. In `pkgs/frigate/package.nix`, update `version`, the `src.rev`, and the + `# tag:` comment beside the rev. Set `src.hash` to the new tarball + hash — either zero the field out and let `nix build` print the + expected SRI, or prefetch it: + + ``` + nix-prefetch-url --unpack --type sha256 \ + https://github.com/sparrowwallet/frigate/archive/.tar.gz + nix hash to-sri --type sha256 + ``` +3. Check whether the drongo submodule pointer changed in the new tag + (`git ls-tree drongo` on a frigate checkout, or inspect the + release diff). If it did, update `drongoSrc.rev` and `drongoSrc.hash` + the same way. +4. Build: `nix build .#frigate`. If gradle dependencies changed, the + build will fail with a mismatch against `pkgs/frigate/deps.json`. + Regenerate it by running the mitm-cache fetch script that nixpkgs's + gradle infrastructure exposes — it rewrites `pkgs/frigate/deps.json` + in place, so run it from the repo root: + + ``` + $(nix build .#frigate.mitmCache.updateScript --no-link --print-out-paths) + ``` + + Re-run `nix build .#frigate` to confirm. +5. Run the VM tests: `nix flake check`. +6. Sanity-check the version string: `./result/bin/frigate --version`. + ## License MIT. See [LICENSE](LICENSE). diff --git a/pkgs/frigate/package.nix b/pkgs/frigate/package.nix index 2e9a310..716ff6b 100644 --- a/pkgs/frigate/package.nix +++ b/pkgs/frigate/package.nix @@ -21,13 +21,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "frigate"; - version = "1.5.1"; + version = "1.5.2"; src = fetchFromGitHub { owner = "sparrowwallet"; repo = "frigate"; - rev = "f8b0457f3b4bc7f80693bfe1bb203e3517270b5c"; # tag: 1.5.1 - hash = "sha256-0CwBrChpHrdmnvCTHHnRsqXu4pAHwev4DljpuYgo+W8="; + rev = "2b86ad298e2be351426e17f63c27429db64fa6f2"; # tag: 1.5.2 + hash = "sha256-RBB86v0dn686m5R0c/RwpLiFNoTwjsaVc4kS082CzFI="; }; postUnpack = ''