56 lines
999 B
Nix
56 lines
999 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"
|
|
|| base == "out"
|
|
|| base == "test-results"
|
|
|| base == "deploy"
|
|
|| base == "intake"
|
|
|| base == "cache"
|
|
|| base == ".tower-minimal");
|
|
};
|
|
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;
|
|
};
|
|
}
|