2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
28 lines
860 B
Nix
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;
|
|
};
|
|
}
|