Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
fix(nix): unbreak `nix build`, and let it run on the PRs that can break it
EtienneLescotec70380913bd
diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.ymlindex a8531c9ac..c18c2ea79 100644--- a/.github/workflows/nix-build.yml+++ b/.github/workflows/nix-build.yml@@ -24,6 +24,22 @@ name: Nix build# front of every merge. Promote it once the schedule has reported a few times.on:workflow_dispatch:+ # The job that actually builds the derivation now runs on the pull requests that+ # can break it. It did not, and the gap was not academic: `nix-check.yml` only+ # compares npmDepsHash, so a PR rewriting the addon's source filter, its RPATH+ # handling or its symbols.map went green on ~18 checks without one of them+ # building it, and the first real signal arrived on main half an hour after the+ # merge. #371 shipped a change to `nix/compositor-view.nix` that way.+ #+ # Path-filtered rather than universal: this takes about half an hour, and a PR+ # that touches none of these files cannot change what it produces.+ pull_request:+ paths:+ - flake.nix+ - flake.lock+ - nix/**+ - crates/**+ - package-lock.jsonpush:branches: [main]schedule:@@ -56,7 +72,11 @@ concurrency:# That is the affordable half. Verifying each merge would need a queue this# workflow does not have, and is not worth it for a half-hour job whose purpose# is catching drift rather than gating a commit.- cancel-in-progress: false+ #+ # On a pull request the opposite is right: a new push makes the previous run+ # answer a question nobody is asking any more, and at half an hour each they+ # would pile up. `github.ref` is the PR's merge ref, so the group is per-PR.+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}jobs:build:diff --git a/flake.lock b/flake.lockindex 77972fb40..dac7a986d 100644--- a/flake.lock+++ b/flake.lock@@ -2,11 +2,11 @@"nodes": {"nixpkgs": {"locked": {- "lastModified": 1775710090,- "narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",+ "lastModified": 1788039129,+ "narHash": "sha256-pa4Q0qErvCvzCaaUph7Sm37RhR4xvPrYI8Lgz6k85+A=","owner": "NixOS","repo": "nixpkgs",- "rev": "4c1018dae018162ec878d42fec712642d214fdfa",+ "rev": "d2f67949798825fe853f7c5d0492b8bf016d3f88","type": "github"},"original": {diff --git a/flake.nix b/flake.nixindex be01a58b4..255f81c6f 100644--- a/flake.nix+++ b/flake.nix@@ -2,6 +2,16 @@description = "OpenScreen — desktop screen recorder with built-in editor";inputs = {+ # Do not roll flake.lock BACK past nixpkgs d2f6794 (2026-08-29). Before it,+ # `importCargoLock` fetched every crate from+ # `https://crates.io/api/v1/crates/<name>/<version>/download`, which crates.io+ # now answers with 403 — it rate-limits that endpoint to 1 req/s and points+ # clients at the CDN instead (rust-lang/crates.io#13482). Every crate in the+ # lockfile failed, so `nix build` died in `cargo-vendor-dir` before reaching a+ # single derivation of ours: `Nix build` was red on main from 2026-08-30, and+ # since `nix-check.yml` only compares npmDepsHash and `nix-build.yml` did not+ # run on pull requests, nothing about nix/ was being verified at all.+ # d2f6794 carries the switch to `https://static.crates.io/crates`.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";};