mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
ee36d11868
Fixes CVE-2022-41946. https://github.com/pgjdbc/pgjdbc/blob/REL42.5.1/CHANGELOG.md
27 lines
720 B
Nix
27 lines
720 B
Nix
{ lib, stdenv, fetchMavenArtifact }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "postgresql-jdbc";
|
|
version = "42.5.1";
|
|
|
|
src = fetchMavenArtifact {
|
|
artifactId = "postgresql";
|
|
groupId = "org.postgresql";
|
|
sha256 = "sha256-iei/+os3uUh5RgEsaQzwTzEDlTBRwcGT2I7ja2jTZa4=";
|
|
inherit version;
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -m444 -D $src/share/java/*postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://jdbc.postgresql.org/";
|
|
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|