2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
bison,
|
|
|
|
cmake,
|
|
|
|
curl,
|
|
|
|
doxygen,
|
|
|
|
fetchFromGitHub,
|
|
|
|
git,
|
|
|
|
glib,
|
|
|
|
gnutls,
|
|
|
|
gpgme,
|
|
|
|
gvm-libs,
|
|
|
|
json-glib,
|
|
|
|
libbsd,
|
|
|
|
libclang,
|
|
|
|
libgcrypt,
|
|
|
|
libksba,
|
|
|
|
libpcap,
|
|
|
|
libsepol,
|
|
|
|
libssh,
|
|
|
|
libtasn1,
|
|
|
|
net-snmp,
|
|
|
|
p11-kit,
|
|
|
|
paho-mqtt-c,
|
|
|
|
pandoc,
|
|
|
|
pcre2,
|
|
|
|
pkg-config,
|
|
|
|
util-linux,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openvas-scanner";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "23.5.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greenbone";
|
|
|
|
repo = "openvas-scanner";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-jIPSQUdW+v0SV6sINkLujqZPysZSdaqHa5+sxTRdpH4=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
git
|
|
|
|
doxygen
|
|
|
|
pandoc
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bison
|
|
|
|
curl
|
|
|
|
glib
|
|
|
|
gnutls
|
|
|
|
gpgme
|
|
|
|
gvm-libs
|
|
|
|
json-glib
|
|
|
|
libbsd
|
|
|
|
libclang
|
|
|
|
libgcrypt
|
|
|
|
libksba
|
|
|
|
libpcap
|
|
|
|
libsepol
|
|
|
|
libssh
|
|
|
|
libtasn1
|
|
|
|
net-snmp
|
|
|
|
p11-kit
|
|
|
|
paho-mqtt-c
|
|
|
|
pcre2
|
|
|
|
util-linux
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DGVM_RUN_DIR=$out/run/gvm"
|
|
|
|
"-DLOCALSTATEDIR=$out/var"
|
|
|
|
"-DSYSCONFDIR=$out/etc"
|
|
|
|
"-DOPENVAS_RUN_DIR=$out/run/ospd"
|
|
|
|
"-DOPENVAS_FEED_LOCK_PATH=$out/var/lib/openvas/feed-update.lock"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Scanner component for Greenbone Community Edition";
|
|
|
|
homepage = "https://github.com/greenbone/openvas-scanner";
|
|
|
|
changelog = "https://github.com/greenbone/openvas-scanner/blob/${src.rev}/changelog.toml";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
mainProgram = "openvas-scanner";
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|