every.channel/nix/pkgs/ec-cli.nix
2026-02-17 23:45:01 -08:00

50 lines
957 B
Nix

{ 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;
outputHashes = {
# Filled iteratively when git dependencies change.
"moq-catalog-0.2.2" = "sha256-df9KXVBRiNewDJ7ZgGBja81PPnk8vC9TA0bDIG0892o=";
};
};
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;
};
}