Module: Origin/Host allowlists from allowedHosts and the FQDN, credentials refreshed on reload so SIGHUP rotates the TLS cert, string cert/key paths kept out of the store, docker.enable asserts virtualisation.docker. VM test covers healthz, 401, token mint/revoke via sudo -u, /mcp, Origin 403, root refusal and a TLS node. Package skips two unit tests that need host state the sandbox lacks. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017WMgwyHQQU9cB4ruRDrKow
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ lib, rustPlatform, pkg-config, cmake, systemd }:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "skyg-linux-tracker";
|
|
version = (lib.importTOML ../Cargo.toml).package.version;
|
|
|
|
src = lib.fileset.toSource {
|
|
root = ../.;
|
|
fileset = lib.fileset.unions [
|
|
../Cargo.toml
|
|
../Cargo.lock
|
|
../config.example.toml
|
|
../migrations
|
|
../src
|
|
../tests
|
|
../examples
|
|
];
|
|
};
|
|
|
|
cargoLock.lockFile = ../Cargo.lock;
|
|
|
|
# cmake: aws-lc-sys. Live-journal tests are #[ignore], so the sandbox runs
|
|
# the rest of the suite.
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
|
buildInputs = [ systemd ];
|
|
|
|
# These two need host state the build sandbox lacks: a root-owned /usr, and a
|
|
# CA bundle for the reqwest client. They run under cargo test outside Nix.
|
|
checkFlags = [
|
|
"--skip=db::tests::cli_owner_check_uses_file_then_parent_and_allows_missing_dir"
|
|
"--skip=telemetry::tests::exporters_build_for_both_protocols"
|
|
];
|
|
|
|
meta = {
|
|
description = "Read-only Linux system monitor: systemd, journald and Docker over REST, MCP and OpenTelemetry";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "slinuxm";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|