mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 23:03:41 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
73 lines
1.7 KiB
Nix
73 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
bzip2,
|
|
darwin,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
rustPlatform,
|
|
stdenv,
|
|
zstd,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "fim-rs";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Achiefs";
|
|
repo = "fim";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-V9BzgVcDTnYSy7N5fCo38vQmXRDXLjY6wvnSkIpuDGg=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
postPatch = ''
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs =
|
|
[
|
|
bzip2
|
|
zstd
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.CoreFoundation
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
darwin.apple_sdk.frameworks.Security
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
env = {
|
|
ZSTD_SYS_USE_PKG_CONFIG = true;
|
|
};
|
|
|
|
# There is a failure while the binary is checked
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Host-based file integrity monitoring tool";
|
|
longDescription = ''
|
|
FIM is a File Integrity Monitoring tool that tracks any event over your
|
|
files. It is capable of keeping historical data of your files. It checks
|
|
the filesystem changes in the background.
|
|
|
|
FIM is the fastest alternative to other software like Ossec, which
|
|
performs file integrity monitoring. It could integrate with other
|
|
security tools. The produced data can be ingested and analyzed with
|
|
tools like ElasticSearch/OpenSearch.
|
|
'';
|
|
homepage = "https://github.com/Achiefs/fim";
|
|
changelog = "https://github.com/Achiefs/fim/releases/tag/v${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "fim";
|
|
};
|
|
}
|