2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
2023-03-08 16:32:21 +00:00
|
|
|
, doxygen
|
2021-09-18 10:52:07 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, 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
|
2023-03-08 16:32:21 +00:00
|
|
|
, paho-mqtt-c
|
2021-09-18 10:52:07 +00:00
|
|
|
, pkg-config
|
|
|
|
, zlib
|
|
|
|
, freeradius
|
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
|
|
|
repo = pname;
|
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
|
|
|
|
freeradius
|
|
|
|
libnet
|
|
|
|
libpcap
|
|
|
|
libssh
|
|
|
|
libuuid
|
2022-10-30 15:09:59 +00:00
|
|
|
libxcrypt
|
2021-09-18 10:52:07 +00:00
|
|
|
libxml2
|
2023-03-08 16:32:21 +00:00
|
|
|
paho-mqtt-c
|
2021-09-18 10:52:07 +00:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
cmakeFlags = [
|
2023-03-04 12:14:45 +00:00
|
|
|
"-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;
|
|
|
|
};
|
|
|
|
}
|