mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
a990f74cf8
* tumpa: sha256 -> hash * qubes-core-vchan-xen: sha256 -> hash * qdmr: sha256 -> hash * w_scan2: sha256 -> hash * libcdada: sha256 -> hash * eidolon: sha256 -> hash * freenukum: sha256 -> hash * promscale: sha256 -> hash * tacacsplus: sha256 -> hash * blflash: sha256 -> hash * silicon: sha256 -> hash * nethoscope: sha256 -> hash * pmacct: sha256 -> hash * tayga: sha256 -> hash * alejandra: sha256 -> hash * igrep: sha256 -> hash * cwm: sha256 -> hash * dasel: sha256 -> hash
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, alsa-lib
|
|
, libpcap
|
|
, expect
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nethoscope";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vvilhonen";
|
|
repo = "nethoscope";
|
|
rev = "v${version}";
|
|
hash = "sha256-v7GO+d4b0N3heN10+WSUJEpcShKmx4BPR1FyZoELWzc=";
|
|
};
|
|
|
|
cargoHash = "sha256-0yLMscmjHeU8dRDzx3kgniCRsekg9ZJWdN13hyqJgDI=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
alsa-lib
|
|
libpcap
|
|
];
|
|
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath [
|
|
libpcap
|
|
alsa-lib
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
if [[ "$(${expect}/bin/unbuffer "$out/bin/${pname}" --help 2> /dev/null | strings | grep ${version} | tr -d '\n')" == " ${version}" ]]; then
|
|
echo '${pname} smoke check passed'
|
|
else
|
|
echo '${pname} smoke check failed'
|
|
return 1
|
|
fi
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Listen to your network traffic";
|
|
longDescription = ''
|
|
Employ your built-in wetware pattern recognition and
|
|
signal processing facilities to understand your network traffic.
|
|
'';
|
|
homepage = "https://github.com/vvilhonen/nethoscope";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
|
platforms = platforms.linux;
|
|
};
|
|
|
|
}
|