Merge: postgresqlPackages.pg-gvm: move from top-level package (#359421)

This commit is contained in:
Maximilian Bosch 2024-11-30 14:15:53 +01:00 committed by GitHub
commit a1d35315ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

@ -975,6 +975,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