depot/third_party/nixpkgs/pkgs/development/java-modules/postgresql_jdbc/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

28 lines
860 B
Nix

{ lib, stdenv, fetchMavenArtifact }:
stdenv.mkDerivation rec {
pname = "postgresql-jdbc";
version = "42.6.0";
src = fetchMavenArtifact {
artifactId = "postgresql";
groupId = "org.postgresql";
hash = "sha256-uBfGekDJQkn9WdTmhuMyftDT0/rkJrINoPHnVlLPxGE=";
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/";
changelog = "https://github.com/pgjdbc/pgjdbc/releases/tag/REL${version}";
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
license = licenses.bsd2;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
platforms = platforms.unix;
};
}