depot/third_party/nixpkgs/pkgs/development/java-modules/postgresql_jdbc/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

28 lines
860 B
Nix

{ lib, stdenv, fetchMavenArtifact }:
stdenv.mkDerivation rec {
pname = "postgresql-jdbc";
version = "42.6.1";
src = fetchMavenArtifact {
artifactId = "postgresql";
groupId = "org.postgresql";
hash = "sha256-ywd0/X0JsjniHp0Es3RKQId7/0Y6jVjD9AfPfZdsNVc=";
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;
};
}