Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<https://github.com/sparrowwallet/frigate/tags>.
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/<rev>.tar.gz
nix hash to-sri --type sha256 <printed-hash>
```
3. Check whether the drongo submodule pointer changed in the new tag
(`git ls-tree <rev> 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).
6 changes: 3 additions & 3 deletions pkgs/frigate/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
Loading