34 lines
856 B
Nix
34 lines
856 B
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 ];
|
|
|
|
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;
|
|
};
|
|
}
|