worker: fix assets binding and SPA routes

This commit is contained in:
every.channel 2026-02-16 17:46:32 -05:00
parent 339aef50e0
commit 2e5fb0880f
No known key found for this signature in database
9 changed files with 510 additions and 11 deletions

46
nix/pkgs/ec-cli.nix Normal file
View file

@ -0,0 +1,46 @@
{ lib
, rustPlatform
, stdenv
, pkg-config
, openssl
}:
let
src = lib.cleanSourceWith {
src = ../../.;
filter = path: type:
let
base = baseNameOf path;
in
!(base == "target" || base == ".git" || base == ".direnv" || base == "tmp" || base == "node_modules");
};
in
rustPlatform.buildRustPackage {
pname = "ec-cli";
version = "0.0.0";
inherit src;
cargoLock = {
lockFile = ../../Cargo.lock;
};
cargoBuildFlags = [ "-p" "ec-cli" ];
nativeBuildInputs = [
pkg-config
];
buildInputs =
[
openssl
];
doCheck = false;
meta = with lib; {
description = "every.channel CLI (HDHomeRun discovery + tooling)";
mainProgram = "ec-cli";
platforms = platforms.unix;
license = licenses.agpl3Only;
};
}