Add duplicate publisher determinism proof
Some checks failed
deploy-cloudflare / checks (push) Failing after 3s
ci-gates / checks (push) Failing after 5s
deploy-cloudflare / deploy (push) Has been skipped

This commit is contained in:
every.channel 2026-06-10 03:28:55 -07:00
parent 5d0f3077d3
commit 91dad67fc2
No known key found for this signature in database
18 changed files with 21569 additions and 595 deletions

File diff suppressed because it is too large Load diff

View file

@ -7,25 +7,38 @@
}:
let
# Keep the build input stable and small; avoid copying `target/`, `tmp/`, etc. into the Nix store.
root = ../../.;
# Keep the build input stable and small. NixOS, infra, docs, and script-only
# changes should not perturb the Rust source hash for config-only deploys.
src = lib.cleanSourceWith {
src = ../../.;
src = root;
filter = path: type:
let
base = baseNameOf path;
rel = lib.removePrefix "${toString root}/" (toString path);
in
# Skip typical build outputs and large scratch dirs.
!(base == "target"
|| base == ".git"
|| base == ".direnv"
|| base == "tmp"
|| base == "node_modules"
|| base == "out"
|| base == "test-results"
|| base == "deploy"
|| base == "intake"
|| base == "cache"
|| base == ".tower-minimal");
rel == ""
|| rel == "Cargo.toml"
|| rel == "Cargo.lock"
|| rel == "crates"
|| lib.hasPrefix "crates/" rel
|| rel == "third_party"
|| rel == "third_party/iroh-org"
|| rel == "third_party/iroh-org/iroh-gossip"
|| lib.hasPrefix "third_party/iroh-org/iroh-gossip/" rel
|| rel == "third_party/iroh-live"
|| rel == "third_party/iroh-live/iroh-moq"
|| lib.hasPrefix "third_party/iroh-live/iroh-moq/" rel
|| rel == "third_party/iroh-live/web-transport-iroh"
|| lib.hasPrefix "third_party/iroh-live/web-transport-iroh/" rel
|| rel == "apps"
|| rel == "apps/tauri"
|| rel == "apps/tauri/Cargo.toml"
|| rel == "apps/tauri/build.rs"
|| rel == "apps/tauri/tauri.conf.json"
|| rel == "apps/tauri/gen"
|| lib.hasPrefix "apps/tauri/gen/" rel
|| rel == "apps/tauri/src"
|| lib.hasPrefix "apps/tauri/src/" rel;
};
in
rustPlatform.buildRustPackage {
@ -52,7 +65,7 @@ rustPlatform.buildRustPackage {
doCheck = false;
meta = with lib; {
description = "every.channel node runner (ingest + chunk + MoQ publish)";
description = "every.channel node (ingest + chunk + MoQ publish)";
mainProgram = "ec-node";
platforms = platforms.unix;
license = licenses.agpl3Only;