diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/gvm-libs')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/gvm-libs/default.nix | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/gvm-libs/default.nix b/nixpkgs/pkgs/development/libraries/gvm-libs/default.nix new file mode 100644 index 000000000000..eb90fbc27592 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/gvm-libs/default.nix @@ -0,0 +1,74 @@ +{ lib +, stdenv +, cmake +, doxygen +, fetchFromGitHub +, glib +, glib-networking +, gnutls +, gpgme +, hiredis +, libgcrypt +, libnet +, libpcap +, libssh +, libuuid +, libxcrypt +, libxml2 +, paho-mqtt-c +, pkg-config +, zlib +, freeradius +}: + +stdenv.mkDerivation rec { + pname = "gvm-libs"; + version = "22.7.0"; + + src = fetchFromGitHub { + owner = "greenbone"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-Jc8qNONdlyzpCCgwhMdwG2D2CO9o0l4vH9sE+NjidE4="; + }; + + nativeBuildInputs = [ + cmake + doxygen + pkg-config + ]; + + buildInputs = [ + glib + glib-networking + gnutls + gpgme + hiredis + libgcrypt + freeradius + libnet + libpcap + libssh + libuuid + libxcrypt + libxml2 + paho-mqtt-c + zlib + ]; + + cmakeFlags = [ + "-DGVM_RUN_DIR=${placeholder "out"}/run/gvm" + ]; + + # causes redefinition of _FORTIFY_SOURCE + hardeningDisable = [ "fortify3" ]; + + meta = with lib; { + 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/v${version}"; + license = with licenses; [ gpl2Plus ]; + maintainers = with maintainers; [ fab ]; + platforms = platforms.linux; + }; +} |