about summary refs log tree commit diff
path: root/pkgs/by-name/pg/pg-gvm/package.nix
blob: 96aa7a2f68b9622a8f4281863a6065e56151429f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
  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
  ];

  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;
  };
}