postgresqlPackages.pg-gvm: move from top-level package

This is a PostgreSQL extension, which only works properly when made
available in the postgresql.pkgs package set.
This commit is contained in:
Wolfgang Walther 2024-11-26 22:15:03 +01:00
parent cc1e73d10d
commit 511b0843c7
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1
3 changed files with 9 additions and 16 deletions

View File

@ -72,6 +72,8 @@ in {
pg_net = super.callPackage ./pg_net.nix { };
pg-gvm = super.callPackage ./pg-gvm.nix { };
pg-semver = super.callPackage ./pg-semver.nix { };
pgtap = super.callPackage ./pgtap.nix { };

View File

@ -1,4 +1,5 @@
{
buildPostgresqlExtension,
cmake,
fetchFromGitHub,
glib,
@ -9,31 +10,21 @@
pcre2,
pkg-config,
postgresql,
stdenv,
}:
stdenv.mkDerivation rec {
buildPostgresqlExtension (finalAttrs: {
pname = "pg-gvm";
version = "22.6.5";
src = fetchFromGitHub {
owner = "greenbone";
repo = "pg-gvm";
rev = "refs/tags/v${version}";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-19ZmQdLjfwJwOMoO16rKJYKOnRyt7SQOdkYTxt8WQ2A=";
};
strictDeps = true;
configurePhase = ''
runHook preConfigure
cmake \
-DCMAKE_INSTALL_DEV_PREFIX=$out .
runHook postConfigure
'';
nativeBuildInputs = [
cmake
pkg-config
@ -46,16 +37,15 @@ stdenv.mkDerivation rec {
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}";
changelog = "https://github.com/greenbone/pg-gvm/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ tochiaha ];
mainProgram = "pg-gvm";
platforms = lib.platforms.all;
platforms = postgresql.meta.platforms;
};
}
})

View File

@ -972,6 +972,7 @@ mapAliases {
perldevel = throw "'perldevel' has been dropped due to lack of updates in nixpkgs and lack of consistent support for devel versions by 'perl-cross' releases, use 'perl' instead";
perldevelPackages = perldevel;
petrinizer = throw "'petrinizer' has been removed, as it was broken and unmaintained"; # added 2024-05-09
pg-gvm = throw "pg-gvm has been moved to postgresql.pkgs.pg-gvm to make it work with all versions of PostgreSQL"; # added 2024-11-30
pgadmin = pgadmin4;
pharo-spur64 = pharo; # Added 2022-08-03
picom-next = picom; # Added 2024-02-13