Files
nixpkgs/pkgs/by-name/gv/gvm-libs/package.nix
2026-08-09 00:28:09 +00:00

82 lines
1.4 KiB
Nix

{
lib,
stdenv,
cjson,
cmake,
curl,
doxygen,
fetchFromGitHub,
glib,
gnutls,
gpgme,
hiredis,
libgcrypt,
libnet,
libpcap,
libssh,
libuuid,
libxcrypt,
libxml2,
openldap,
paho-mqtt-c,
pkg-config,
radcli,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gvm-libs";
version = "23.9.2";
src = fetchFromGitHub {
owner = "greenbone";
repo = "gvm-libs";
tag = "v${finalAttrs.version}";
hash = "sha256-sHSlHxIN5aJLxciAbDu0yesnCdcVOJ59X46WRXOEKMg=";
};
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail "-Werror" ""
'';
nativeBuildInputs = [
cmake
doxygen
pkg-config
];
buildInputs = [
cjson
curl
glib
gnutls
gpgme
hiredis
libgcrypt
libnet
libpcap
libssh
libuuid
libxcrypt
libxml2
openldap
paho-mqtt-c
radcli
zlib
];
cmakeFlags = [ "-DGVM_RUN_DIR=${placeholder "out"}/run/gvm" ];
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
meta = {
description = "Libraries module for the Greenbone Vulnerability Management Solution";
homepage = "https://github.com/greenbone/gvm-libs";
changelog = "https://github.com/greenbone/gvm-libs/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.linux;
};
})