azure-storage-azcopy: 10.27.1 -> 10.28.0 (#377459)
[NixPkgs.git] / pkgs / by-name / op / openvas-scanner / package.nix
blob86e54ac70aaf883c0727311550517ab1fc284bd0
2   lib,
3   stdenv,
4   bison,
5   cmake,
6   curl,
7   doxygen,
8   fetchFromGitHub,
9   git,
10   glib,
11   gnutls,
12   gpgme,
13   gvm-libs,
14   json-glib,
15   libbsd,
16   libclang,
17   libgcrypt,
18   libksba,
19   libpcap,
20   libsepol,
21   libssh,
22   libtasn1,
23   net-snmp,
24   p11-kit,
25   paho-mqtt-c,
26   pandoc,
27   pcre2,
28   pkg-config,
29   util-linux,
32 stdenv.mkDerivation rec {
33   pname = "openvas-scanner";
34   version = "23.15.0";
36   src = fetchFromGitHub {
37     owner = "greenbone";
38     repo = "openvas-scanner";
39     tag = "v${version}";
40     hash = "sha256-LjZZYIA0Qkuheb8ZAPBuiy5GgjOgCfJ0D/YM03zTcW0=";
41   };
43   nativeBuildInputs = [
44     cmake
45     git
46     doxygen
47     pandoc
48     pkg-config
49   ];
51   buildInputs = [
52     bison
53     curl
54     glib
55     gnutls
56     gpgme
57     gvm-libs
58     json-glib
59     libbsd
60     libclang
61     libgcrypt
62     libksba
63     libpcap
64     libsepol
65     libssh
66     libtasn1
67     net-snmp
68     p11-kit
69     paho-mqtt-c
70     pcre2
71     util-linux
72   ];
74   cmakeFlags = [
75     "-DGVM_RUN_DIR=$out/run/gvm"
76     "-DLOCALSTATEDIR=$out/var"
77     "-DSYSCONFDIR=$out/etc"
78     "-DOPENVAS_RUN_DIR=$out/run/ospd"
79     "-DOPENVAS_FEED_LOCK_PATH=$out/var/lib/openvas/feed-update.lock"
80   ];
82   meta = with lib; {
83     description = "Scanner component for Greenbone Community Edition";
84     homepage = "https://github.com/greenbone/openvas-scanner";
85     changelog = "https://github.com/greenbone/openvas-scanner/blob/${src.rev}/changelog.toml";
86     license = licenses.gpl2Only;
87     maintainers = with maintainers; [ fab ];
88     mainProgram = "openvas-scanner";
89     platforms = platforms.all;
90   };