nixpkgs/pkgs/by-name/gv/gvm-libs/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
1.4 KiB
Nix
Raw Normal View History

2024-04-13 09:23:50 +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-08 21:36:28 +00:00
}:
stdenv.mkDerivation rec {
pname = "gvm-libs";
2024-08-29 13:07:21 +00:00
version = "22.11.0";
2021-09-08 21:36:28 +00:00
src = fetchFromGitHub {
owner = "greenbone";
2024-04-13 09:23:50 +00:00
repo = "gvm-libs";
2023-03-06 00:09:38 +00:00
rev = "refs/tags/v${version}";
2024-08-29 13:07:21 +00:00
hash = "sha256-VYFAy6VVASNOBLs39qukePYr5pV0IR1qjztv+veNCVc=";
2021-09-08 21:36:28 +00:00
};
2024-08-17 09:00:09 +00:00
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail "-Werror" ""
'';
2021-09-08 21:36:28 +00:00
nativeBuildInputs = [
cmake
doxygen
2021-09-08 21:36:28 +00:00
pkg-config
];
buildInputs = [
glib
glib-networking
gnutls
gpgme
hiredis
libgcrypt
libnet
libpcap
libssh
libuuid
2022-09-30 00:43:07 +00:00
libxcrypt
2021-09-08 21:36:28 +00:00
libxml2
2024-04-13 09:23:50 +00:00
openldap
paho-mqtt-c
2024-04-13 09:23:50 +00:00
radcli
2021-09-08 21:36:28 +00:00
zlib
];
2024-04-13 09:23:50 +00:00
cmakeFlags = [ "-DGVM_RUN_DIR=${placeholder "out"}/run/gvm" ];
2021-12-31 22:50:25 +00:00
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
2021-09-08 21:36:28 +00:00
meta = with lib; {
description = "Libraries module for the Greenbone Vulnerability Management Solution";
homepage = "https://github.com/greenbone/gvm-libs";
2023-03-06 00:09:38 +00:00
changelog = "https://github.com/greenbone/gvm-libs/releases/tag/v${version}";
2021-09-08 21:36:28 +00:00
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [ fab ];
platforms = platforms.linux;
};
}