2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchMavenArtifact }:
|
2014-01-03 10:46:54 +00:00
|
|
|
|
2012-08-27 18:02:39 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "postgresql-jdbc";
|
2021-05-01 07:46:26 +00:00
|
|
|
version = "42.2.20";
|
2005-05-24 15:32:57 +00:00
|
|
|
|
2018-04-12 15:35:16 +00:00
|
|
|
src = fetchMavenArtifact {
|
|
|
|
artifactId = "postgresql";
|
|
|
|
groupId = "org.postgresql";
|
2021-05-01 07:46:26 +00:00
|
|
|
sha256 = "0kjilsrz9shymfki48kg1q84la1870ixlh2lnfw347x8mqw2k2vh";
|
2018-04-12 15:35:16 +00:00
|
|
|
inherit version;
|
2005-05-24 15:32:57 +00:00
|
|
|
};
|
|
|
|
|
2018-04-12 15:35:16 +00:00
|
|
|
installPhase = ''
|
2021-05-01 07:46:26 +00:00
|
|
|
runHook preInstall
|
2018-10-15 17:34:24 +00:00
|
|
|
install -m444 -D $src/share/java/*postgresql-${version}.jar $out/share/java/postgresql-jdbc.jar
|
2021-05-01 07:46:26 +00:00
|
|
|
runHook postInstall
|
2018-04-12 15:35:16 +00:00
|
|
|
'';
|
2012-08-27 18:02:39 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://jdbc.postgresql.org/";
|
2012-08-27 18:02:39 +00:00
|
|
|
description = "JDBC driver for PostgreSQL allowing Java programs to connect to a PostgreSQL database";
|
2018-10-15 17:34:24 +00:00
|
|
|
license = licenses.bsd2;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.unix;
|
2012-08-27 18:02:39 +00:00
|
|
|
};
|
2005-05-24 15:32:57 +00:00
|
|
|
}
|