1 { lib, stdenv, fetchMavenArtifact }:
3 stdenv.mkDerivation rec {
4 pname = "postgresql-jdbc";
7 src = fetchMavenArtifact {
8 artifactId = "postgresql";
9 groupId = "org.postgresql";
10 hash = "sha256-ywd0/X0JsjniHp0Es3RKQId7/0Y6jVjD9AfPfZdsNVc=";
16 install -m444 -D $src/share/java/*postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
21 homepage = "https://jdbc.postgresql.org/";
22 changelog = "https://github.com/pgjdbc/pgjdbc/releases/tag/REL${version}";
23 description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
24 license = licenses.bsd2;
25 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
26 platforms = platforms.unix;