depot/pkgs/by-name/pg/pg-gvm/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

61 lines
1 KiB
Nix

{
cmake,
fetchFromGitHub,
glib,
gvm-libs,
icu,
lib,
libical,
pcre2,
pkg-config,
postgresql,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "pg-gvm";
version = "22.6.5";
src = fetchFromGitHub {
owner = "greenbone";
repo = "pg-gvm";
rev = "refs/tags/v${version}";
hash = "sha256-19ZmQdLjfwJwOMoO16rKJYKOnRyt7SQOdkYTxt8WQ2A=";
};
strictDeps = true;
configurePhase = ''
runHook preConfigure
cmake \
-DCMAKE_INSTALL_DEV_PREFIX=$out .
runHook postConfigure
'';
nativeBuildInputs = [
cmake
pkg-config
postgresql
];
buildInputs = [
glib
gvm-libs
icu
libical
pcre2
postgresql
];
meta = {
description = "Greenbone Library for helper functions in PostgreSQL";
homepage = "https://github.com/greenbone/pg-gvm";
changelog = "https://github.com/greenbone/pg-gvm/releases/tag/v${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ tochiaha ];
mainProgram = "pg-gvm";
platforms = lib.platforms.all;
};
}