Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, stdenv
3, cmake
4, doxygen
5, fetchFromGitHub
6, glib
7, glib-networking
8, gnutls
9, gpgme
10, hiredis
11, libgcrypt
12, libnet
13, libpcap
14, libssh
15, libuuid
16, libxcrypt
17, libxml2
18, paho-mqtt-c
19, pkg-config
20, zlib
21, freeradius
22}:
23
24stdenv.mkDerivation rec {
25 pname = "gvm-libs";
26 version = "22.5.0";
27
28 src = fetchFromGitHub {
29 owner = "greenbone";
30 repo = pname;
31 rev = "refs/tags/v${version}";
32 hash = "sha256-QHAkPZoLQG+UQ1YNdad+XYOywqLqIW1vBmcFkuf3pXU=";
33 };
34
35 nativeBuildInputs = [
36 cmake
37 doxygen
38 pkg-config
39 ];
40
41 buildInputs = [
42 glib
43 glib-networking
44 gnutls
45 gpgme
46 hiredis
47 libgcrypt
48 freeradius
49 libnet
50 libpcap
51 libssh
52 libuuid
53 libxcrypt
54 libxml2
55 paho-mqtt-c
56 zlib
57 ];
58
59 cmakeFlags = [
60 "-DGVM_RUN_DIR=${placeholder "out"}/run/gvm"
61 ];
62
63 meta = with lib; {
64 description = "Libraries module for the Greenbone Vulnerability Management Solution";
65 homepage = "https://github.com/greenbone/gvm-libs";
66 changelog = "https://github.com/greenbone/gvm-libs/releases/tag/v${version}";
67 license = with licenses; [ gpl2Plus ];
68 maintainers = with maintainers; [ fab ];
69 platforms = platforms.linux;
70 };
71}