2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, glib-networking
|
|
|
|
, gnutls
|
|
|
|
, gpgme
|
|
|
|
, hiredis
|
|
|
|
, libgcrypt
|
|
|
|
, libnet
|
|
|
|
, libpcap
|
|
|
|
, libssh
|
|
|
|
, libuuid
|
|
|
|
, libxml2
|
|
|
|
, pkg-config
|
|
|
|
, zlib
|
|
|
|
, freeradius
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gvm-libs";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "21.4.3";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greenbone";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "sha256-1NVLGyUDUnOy3GYDtVyhGTvWOYoWp95EbkgTlFWuxE8=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
gnutls
|
|
|
|
gpgme
|
|
|
|
hiredis
|
|
|
|
libgcrypt
|
|
|
|
freeradius
|
|
|
|
libnet
|
|
|
|
libpcap
|
|
|
|
libssh
|
|
|
|
libuuid
|
|
|
|
libxml2
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DGVM_RUN_DIR=$out/run/gvm"
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
license = with licenses; [ gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|