base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / gv / gvm-libs / package.nix
blobc3e5e278b5905338f1ca0ecbbb1d9eb2a9d19644
2   lib,
3   stdenv,
4   cmake,
5   doxygen,
6   fetchFromGitHub,
7   glib,
8   glib-networking,
9   gnutls,
10   gpgme,
11   hiredis,
12   libgcrypt,
13   libnet,
14   libpcap,
15   libssh,
16   libuuid,
17   libxcrypt,
18   libxml2,
19   openldap,
20   paho-mqtt-c,
21   pkg-config,
22   radcli,
23   zlib,
26 stdenv.mkDerivation rec {
27   pname = "gvm-libs";
28   version = "22.11.0";
30   src = fetchFromGitHub {
31     owner = "greenbone";
32     repo = "gvm-libs";
33     rev = "refs/tags/v${version}";
34     hash = "sha256-VYFAy6VVASNOBLs39qukePYr5pV0IR1qjztv+veNCVc=";
35   };
37   postPatch = ''
38     substituteInPlace CMakeLists.txt --replace-fail "-Werror" ""
39   '';
41   nativeBuildInputs = [
42     cmake
43     doxygen
44     pkg-config
45   ];
47   buildInputs = [
48     glib
49     glib-networking
50     gnutls
51     gpgme
52     hiredis
53     libgcrypt
54     libnet
55     libpcap
56     libssh
57     libuuid
58     libxcrypt
59     libxml2
60     openldap
61     paho-mqtt-c
62     radcli
63     zlib
64   ];
66   cmakeFlags = [ "-DGVM_RUN_DIR=${placeholder "out"}/run/gvm" ];
68   # causes redefinition of _FORTIFY_SOURCE
69   hardeningDisable = [ "fortify3" ];
71   meta = with lib; {
72     description = "Libraries module for the Greenbone Vulnerability Management Solution";
73     homepage = "https://github.com/greenbone/gvm-libs";
74     changelog = "https://github.com/greenbone/gvm-libs/releases/tag/v${version}";
75     license = with licenses; [ gpl2Plus ];
76     maintainers = with maintainers; [ fab ];
77     platforms = platforms.linux;
78   };