2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
cmake,
|
|
|
|
doxygen,
|
|
|
|
fetchFromGitHub,
|
|
|
|
glib,
|
|
|
|
glib-networking,
|
|
|
|
gnutls,
|
|
|
|
gpgme,
|
|
|
|
hiredis,
|
|
|
|
libgcrypt,
|
|
|
|
libnet,
|
|
|
|
libpcap,
|
|
|
|
libssh,
|
|
|
|
libuuid,
|
|
|
|
libxcrypt,
|
|
|
|
libxml2,
|
|
|
|
openldap,
|
|
|
|
paho-mqtt-c,
|
|
|
|
pkg-config,
|
|
|
|
radcli,
|
|
|
|
zlib,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gvm-libs";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "22.8.0";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greenbone";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "gvm-libs";
|
2023-03-08 16:32:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-nFqYpt9OWEPgSbaNsHLhs9mg7ChQcmfcgHh7nFfQh18=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2023-03-08 16:32:21 +00:00
|
|
|
doxygen
|
2021-09-18 10:52:07 +00:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
gnutls
|
|
|
|
gpgme
|
|
|
|
hiredis
|
|
|
|
libgcrypt
|
|
|
|
libnet
|
|
|
|
libpcap
|
|
|
|
libssh
|
|
|
|
libuuid
|
2022-10-30 15:09:59 +00:00
|
|
|
libxcrypt
|
2021-09-18 10:52:07 +00:00
|
|
|
libxml2
|
2024-04-21 15:54:59 +00:00
|
|
|
openldap
|
2023-03-08 16:32:21 +00:00
|
|
|
paho-mqtt-c
|
2024-04-21 15:54:59 +00:00
|
|
|
radcli
|
2021-09-18 10:52:07 +00:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cmakeFlags = [ "-DGVM_RUN_DIR=${placeholder "out"}/run/gvm" ];
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# causes redefinition of _FORTIFY_SOURCE
|
|
|
|
hardeningDisable = [ "fortify3" ];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Libraries module for the Greenbone Vulnerability Management Solution";
|
|
|
|
homepage = "https://github.com/greenbone/gvm-libs";
|
2023-03-08 16:32:21 +00:00
|
|
|
changelog = "https://github.com/greenbone/gvm-libs/releases/tag/v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|