nixpkgs/pkgs/by-name/gv/gvm-libs/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

80 lines
1.4 KiB
Nix

{
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,
}:
stdenv.mkDerivation rec {
pname = "gvm-libs";
version = "22.11.0";
src = fetchFromGitHub {
owner = "greenbone";
repo = "gvm-libs";
rev = "refs/tags/v${version}";
hash = "sha256-VYFAy6VVASNOBLs39qukePYr5pV0IR1qjztv+veNCVc=";
};
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail "-Werror" ""
'';
nativeBuildInputs = [
cmake
doxygen
pkg-config
];
buildInputs = [
glib
glib-networking
gnutls
gpgme
hiredis
libgcrypt
libnet
libpcap
libssh
libuuid
libxcrypt
libxml2
openldap
paho-mqtt-c
radcli
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;
};
}